Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
HuangruiMo committed May 25, 2019
1 parent 67ed27b commit 2a60fde
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 8 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@

## 更新记录

* `2019-05-25` 根据 [CDMA2019, issue #169](https://github.com/mohuangrui/ucasthesis/issues/169) 提供横排图表环境下页眉页脚的横排,具体使用见 [横排图表](https://github.com/mohuangrui/ucasthesis/wiki/横排图表)

* `2019-04-24` 拓展模版兼容博后报告。修复 [gsp2014, issue #156](https://github.com/mohuangrui/ucasthesis/issues/156) 文献引用中的连字符的间断显示和上标引用中逗号下沉。

* `2019-04-19` 修复 [nihaomiao, issue #117](https://github.com/mohuangrui/ucasthesis/issues/117) `\mathbf` 失效问题。
Expand Down
42 changes: 35 additions & 7 deletions Style/artratex.sty
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,10 @@
\RequirePackage[cal=cm]{mathalfa}% map styles for calligraphic \mathcal and script \mathscr alphabet
\else% <xelatex> or <lualatex> call system fonts
\RequirePackage{fontspec}% support calling system fonts
\@ifpackagelater{fontspec}{2016/12/27}{}{%
\PackageError{artratex}{%
This package requires fontspec\MessageBreak 2016/12/27 or later version}{}
}
%- Font properties: <family> + <weight> + <shape> + <size>
%- Specify the three default TeX font families: <main>, <sans>, <mono>
%- \setxxxxfont{<font>}[BoldFont=<font-b>,ItalicFont=<font-i>,BoldItalicFont=<font-bi>]%
Expand Down Expand Up @@ -686,15 +690,39 @@
\ifartx@lscape%
\fancypagestyle{lscape}{% landscape layout style
\fancyhf{}% clear fields
\fancyhead[C]{%
\begin{textblock}{1.0}[0.5,0.5](0.08,0.5)%
\rotatebox{90}{%
\footnotesize \ifnumodd{\value{page}}{\artxmark\ \leftmark}{\@title}%
}%
\end{textblock}%
\begin{textblock}{1.0}[0.5,0.5](0.08,0.5)%
\rotatebox{90}{%
\rule[-14pt]{\textwidth}{0.8pt}%
}%
\end{textblock}%
}%
\fancyfoot[C]{%
%- textpos: \begin{textblock}{<blockwidth>}[0.5,0.5](<hpos>,<vpos>) text... \end{textblock}
\begin{textblock}{1.0}[0.5,0.5](0.92,0.5)
\rotatebox{90}{%
\footnotesize \ifnumodd{\value{page}}{\hspace*{\fill}\thepage}{\thepage\hspace*{\fill}}%
}%
\end{textblock}%
}%
%- textpos: \begin{textblock}{<blockwidth>}[<ho>,<vo>](<hpos>,<vpos>) text... \end{textblock}
%- origin of the absolute coordinate is the top-left corner of the page
%- [0.5,0.5] means reference point of the block is the middle
\begin{textblock}{0.1}[0.5,0.5](0.85,0.5){\rotatebox{90}{\footnotesize \thepage}}\end{textblock}% position the page number
}
%- set units of <blockwidth>, <hpos>, and <vpos> arguments by corresponding modules
\setlength{\TPHorizModule}{8.5in}% set to the width of page
\setlength{\TPVertModule}{11in}% set to the height of page
%- text will be set in a box <blockwidth> modules wide and placed on the page
%- with the point [<ho>,<vo>] of the block at the position (<hpos>,<vpos>) of the page
%- [<ho>,<vo>] are fractions of the width and height of the text box and specify
%- the reference point of the text box, [0,0]: top left; [0.5,0.5]: middle; [0,1]: bottom left
%- [<hpos>,<vpos>] are fractions of the width and height of the page and specify
%- the position point on page, [0,0]: top left; [0.5,0.5]: middle; [0,1]: bottom left
%- set unit of <blockwidth>, <hpos> arguments via module
\setlength{\TPHorizModule}{\paperwidth}%
%- set unit of <vpos> argument via module
\setlength{\TPVertModule}{\paperheight}%
%- \rule[raise]{width}{thickness}
%- \rotatebox[origin=c]{angle}{text}
\renewcommand{\headrulewidth}{0pt}% header rule
\renewcommand{\footrulewidth}{0pt}% footer rule
}
Expand Down
2 changes: 1 addition & 1 deletion artratex.bat
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ bibtex ./Tmp/%FileName%
@rem ------------------------------------------------
@rem ->> View compiled file
@rem ------------------------------------------------
start " " /max "./Tmp/%FileName%.pdf"
@start " " /max "./Tmp/%FileName%.pdf"
echo ------------------------------------------------
echo %CompileName% %FileName%.tex finished...
echo ------------------------------------------------

0 comments on commit 2a60fde

Please sign in to comment.