Skip to content

Commit 392f03b

Browse files
committed
Respect twocolumn option
1 parent 789d829 commit 392f03b

File tree

4 files changed

+23
-20
lines changed

4 files changed

+23
-20
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ format:
2929
3030
## Options
3131
32+
- `twocolumn`: 是否双栏排版,默认为 `true`
3233
- `eauthor`: 英文作者名字和上标
3334
- `eaffiliation`: 英文作者单位
3435
- `eabstract`: 英文摘要

_extensions/chinese-journal/partials/before-body.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
% 生成标题
2-
\twocolumn
2+
$if(twocolumn)$\twocolumn$endif$
33
\begin{figure*}[t]
44
\begin{center}
55
\parbox{\textwidth}{

_extensions/chinese-journal/partials/before-title.tex

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -67,22 +67,24 @@
6767

6868
% 表格设置
6969
\usepackage{float,stfloats}
70-
\makeatletter
71-
\let\oldlt\longtable
72-
\let\endoldlt\endlongtable
73-
\def\longtable{\@ifnextchar[\longtable@i \longtable@ii}
74-
\def\longtable@i[#1]{\begin{figure}[H]
75-
\onecolumn
76-
\begin{minipage}{0.5\textwidth}
77-
\oldlt[#1]
78-
}
79-
\def\longtable@ii{\begin{figure}[H]
80-
\onecolumn
81-
\begin{minipage}{0.5\textwidth}
82-
\oldlt
83-
}
84-
\def\endlongtable{\bottomrule\endoldlt
85-
\end{minipage}
86-
\twocolumn
87-
\end{figure}}
88-
\makeatother
70+
$if(twocolumn)$
71+
\makeatletter
72+
\let\oldlt\longtable
73+
\let\endoldlt\endlongtable
74+
\def\longtable{\@ifnextchar[\longtable@i \longtable@ii}
75+
\def\longtable@i[#1]{\begin{figure}[H]
76+
\onecolumn
77+
\begin{minipage}{0.5\textwidth}
78+
\oldlt[#1]
79+
}
80+
\def\longtable@ii{\begin{figure}[H]
81+
\onecolumn
82+
\begin{minipage}{0.5\textwidth}
83+
\oldlt
84+
}
85+
\def\endlongtable{\bottomrule\endoldlt
86+
\end{minipage}
87+
\twocolumn
88+
\end{figure}}
89+
\makeatother
90+
$endif$

template.pdf

5 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)