前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >页面页眉、页脚的修饰:fancyhdr包;选择题的括号右对齐的方法:\hfill

页面页眉、页脚的修饰:fancyhdr包;选择题的括号右对齐的方法:\hfill

作者头像
狼啸风云
修改2022-09-03 19:41:59
1.1K0
修改2022-09-03 19:41:59
举报

1、页面页眉、页脚的修饰:fancyhdr包 调整页面的宽度,以下命令在前 \usepackage{anysize} \marginsize{2cm}{1.5cm}{1cm}{1cm} 随后,再设计fancyhdr包的其他命令,否则页面的宽度不能设置成功。 即使用命令 \setlength{\textwidth}{17cm} 也不能改变页面的宽度。

2、选择题的括号右对齐的方法:\hfill 目录页码右对齐的方法:\dotfill或\hrulefill (*)显示命令的方法 引用包 \usepackage{verbatim} 用环境\begin{verbatim}…\end{verbatim} 示例: \documentclass[11pt]{article}

\usepackage{verbatim}

\begin{document} This document demonstrates the \verb=verbatim= environment and \verb=\verbatiminput= command. It also demonstrates the \verb=comment= environment, but you have to look at the TeX source to see that (of course). Here is a short piece of Maple code to demonstrate the the \verb=verbatim= environment: \begin{verbatim} > eqn:=diff(y(t),t,t)+4*y(t)=0: > inits:=y(0)=1,D(y)(0)=-1: > dsolve({eqn,inits},y(t)); \end{verbatim} $$ \mathrm{y}(t)= - \frac{1}{2}\,\sin(2\,t) + \cos(2\,t) $$

Put a few paragraphs you have not decided about yet here for future work. They will not appear in the output. You can also put comments or reminders here. For example, you may want to remind yourself that Maple has a nice LaTeX export feature which may be more convenient than the by-hand approach used above.

To demonstrate the \verb=\verbatiminput= command this file will input itself, which is pretty cool. To make sure this file can find itself to input, we use the \verb=\jobname= command in the argument to \verb=\verbatiminput=. Thus everything will work even if you rename this file.

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2019-11-18 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档