我知道这个问题已经得到解答了这里,但我仍然无法使多列内的所有文本居中对齐。
以下是我得到的不正确的左对齐文本:
% document class
\documentclass[a4paper,11pt,final]{memoir}
% stuff
\pagestyle{empty} % no page numbering
\setlength{\parindent}{0pt} % no paragraph indentation
% required packages (add your own)
\usepackage{flowfram} % column layout
\usepackage[top=1cm,left=1cm,right=1cm,bottom=1cm]{geometry}% margins
\usepackage{graphicx} % figures
\usepackage{hyperref} % hyper links
\usepackage[svgnames]{xcolor} % Call colours by their svgnames
\usepackage[UKenglish]{babel} % English language/hyphenation
\usepackage{tikz}
\usepackage{enumitem}% bullet items
\usepackage{multicol} % Leelo Multi Cols
% Create column layout
% define length commands
\setlength{\vcolumnsep}{\baselineskip}
\setlength{\columnsep}{\vcolumnsep}
% frame setup (flowfram package)
% left frame
\newflowframe{0.24\textwidth}{\textheight}{0pt}{0pt}[left]
\newlength{\LeftMainSep}
\setlength{\LeftMainSep}{0.22\textwidth}
\addtolength{\LeftMainSep}{2\columnsep}
% right frame
\newflowframe{0.7\textwidth}{\textheight}{\LeftMainSep}{0pt}[main01]
% Start The Fans Please!
\begin{document}
\hspace*{\parindent}% text in specimen is set into page somewhat
\begin{minipage}[c]{5.1cm}% adjust to taste
\begin{center}
Barn water\\
boobtube shotgun\\
hayseed hootin'\\
creosote fricasee\\
Catfight spittin'\\
grandma everlastin'\\
Jail cousin\\
% end justify center
\end{center}\normalsize
\framebreak
\end{minipage}
% End of mini page
\hspace*{1em}% avoid text hitting edge of frame or background - adjust to taste
\vfill\vfill% adjust to taste or reduce to one \vfill if setting \vspace*{} to a specific value above
\framebreak% force following text to next flow frame
% Right frame
%Leelo multi pass
\begin{multicols}{3}
It's light.\\
Handle's adjustable\\
for easy carrying, good for righties and lefties. Breaks down into four parts, undetectable by x-ray, ideal for quick, discreet interventions. A word on firepower. Titanium recharger, three thousand round clip with bursts of three to three hundred, and with the Replay button - another Zorg invention - it's even easier.
% End multi cols No more multi pass
\end{multicols}
\end{document}
答案1
目前尚不清楚你遇到了什么问题,但中心对齐是通过\centering
% document class
\documentclass[a4paper,11pt,final]{memoir}
% stuff
\pagestyle{empty} % no page numbering
\setlength{\parindent}{0pt} % no paragraph indentation
% required packages (add your own)
\usepackage{flowfram} % column layout
\usepackage[top=1cm,left=1cm,right=1cm,bottom=1cm]{geometry}% margins
\usepackage{graphicx} % figures
\usepackage{hyperref} % hyper links
\usepackage[svgnames]{xcolor} % Call colours by their svgnames
\usepackage[UKenglish]{babel} % English language/hyphenation
\usepackage{tikz}
\usepackage{enumitem}% bullet items
\usepackage{multicol} % Leelo Multi Cols
% Create column layout
% define length commands
\setlength{\vcolumnsep}{\baselineskip}
\setlength{\columnsep}{\vcolumnsep}
% frame setup (flowfram package)
% left frame
\newflowframe{0.24\textwidth}{\textheight}{0pt}{0pt}[left]
\newlength{\LeftMainSep}
\setlength{\LeftMainSep}{0.22\textwidth}
\addtolength{\LeftMainSep}{2\columnsep}
% right frame
\newflowframe{0.7\textwidth}{\textheight}{\LeftMainSep}{0pt}[main01]
% Start The Fans Please!
\begin{document}
\hspace*{\parindent}% text in specimen is set into page somewhat
\begin{minipage}[c]{5.1cm}% adjust to taste
\begin{center}
Barn water\\
boobtube shotgun\\
hayseed hootin'\\
creosote fricasee\\
Catfight spittin'\\
grandma everlastin'\\
Jail cousin\\
% end justify center
\end{center}\normalsize
\framebreak
\end{minipage}
% End of mini page
\hspace*{1em}% avoid text hitting edge of frame or background - adjust to taste
\vfill\vfill% adjust to taste or reduce to one \vfill if setting \vspace*{} to a specific value above
\framebreak% force following text to next flow frame
% Right frame
%Leelo multi pass
\begin{multicols}{3}\centering
It's light.\\
Handle's adjustable\\
for easy carrying, good for righties and lefties. Breaks down into four parts, undetectable by x-ray, ideal for quick, discreet interventions. A word on firepower. Titanium recharger, three thousand round clip with bursts of three to three hundred, and with the Replay button - another Zorg invention - it's even easier.
% End multi cols No more multi pass
\end{multicols}
\end{document}