\文档类[12p,双面]{book} \usepackage[匈牙利语]{babel} \使用包{cancel} \使用包[T1]{fontenc} \使用包[utf8]{inputenc} \usepackage[a4纸张,边距=1.5in]{几何} \使用包{graphicx} \使用包{mathtools} \使用包{leipzig} \使用包{fancyhdr} \使用包[天气]{ifsym} \使用包{captof-of} \使用包{multicol} \使用包{booktabs} \使用包{sansmath,amsfonts} \使用包{pifont} \使用包{indentfirst} %\usepackage[backend=biber,style=authoryear,]{biblate} \使用包{bbding} \使用包{stackengine} \usepackage[表格,xcdraw]{xcolor} \使用包{tikz-qtree-compat} \使用包{textcomp} \使用包{sectsty} \使用包{array} \使用包{bm} %\使用包{apacite} \使用包{natbib} %\使用包{hyperref} \setcitestyle{authoryear,open={(},close={)}} \集合citestyle{aysep={}} %\声明RobustCommand{\DEN}[3]{#2} \页面样式{普通} \使用包{amsmath} \usetikzlibrary{patterns,patterns.meta,arrows.meta,decorations.pathreplacement,书法,形状。几何,配合} \使用包{setspace} \使用tikzlibrary{tikzmark} \使用包{tipa} \使用程序包{linguex} \使用包{titlesec} \使用包{多行} \使用包{tikz-cd} \使用包[cbgreek]{textgreek} \集合引用样式{notesep={:}} %删除脚注上方的水平尺 \更新命令{\footnoterule}{% \kern-3pt%稍微提高规则以避免额外空间 \hrule width 0pt%将规则宽度设置为0pt \kern 2.6pt%规则后的空格(如果您决定再次显示它) } \标记字母 \更新命令\@makefntext[1]{% \setlength{\prindent}{0pt}%段落开头没有缩进 \开始{list}{}{%悬挂缩进的设置 \setlength{\topsep}{0pt}%第一项前没有多余的空格 \setlength{\leftmargin}{10em}%脚注编号的空格 \setlength{\labelwidth}{0em}%脚注编号不占用空间 \setlength{\listparindent}{0pt}%脚注中后续段落没有缩进 \集合长度{\itemindent}{0pt}% \setlength{\parsep}{0pt}%段落之间没有额外的垂直间距 } \item[\textsf{\textsuperscript{\@thefnmark}}\hfil]%右对齐脚注编号并为脚注文本留出空间 #1%脚注文本本身 \结束{list}% } \标记字母 \addtolength{\skip\footins}{25pt}%增加空格。 根据需要调整值。 \tikzcdset{arrow style=tikz,diagrams={>=latex}} \tikzset{inline/.style={columnsep=2mm,cells={nodes={inner xsep=0pt}}}} \标题格式{\小节} {\normalfont\Large\sffamily\bfseries}{\thesubsection}{1em}{} \更新命令{\bfdefault}{sbc} \所有部分font{\sfamily} \更新命令{\textbf}[1]{{fontseries{bx}\selectfont{#1}}} \更新命令{\sdefault}{cmss} \新命令{\sipa}[1]{\textsf{\textipa{#1}} %更新chaptermark(对于文章类,section是最高级别) \更新命令{\sectionmark}[1]{\markeboth{#1}{}} \fancyfot[CE,CO]{\tpage}%偶数页:左脚,奇数页:右脚 \开始{文档}
2个答案
\文档类[12pt]{book} \使用包[T1]{fontenc} \使用包{fix-cm} \usepackage[a4纸张,边距=1.5英寸,高度圆角]{几何} \使用包{titlesec} \标题格式 {\sfamily\bfseries} {} {0pt} {\formatchaptertitle{\rule{6pt}{\ht\strutbox}\,\chapter}}} \titleformat{name=\chapter,numberless}[块] {\sfamily\bfseries} {} {0pt} {\formatchaptertile{\rule{6pt}{\ht\strutbox}\hphantom{\,0.}}} \新闻存储盒{\chapternumberbox} \新命令{\formatchaptertitle}[2]{% \sbox{\chapternumberbox}{\fontsize{2cm}{2.5cm}\selectfont#1}% \usebox{\chapternumberbox}\hspace{1pc}% \parbox[b]{\dimeval{\textwidth-\wd\chapternumberbox-1pc}}{% \大\raggedright\MakeUppercase{#2}% }% } \开始{文档} \正面物质 \目录 \主要事项 \第{章导言} \第{音节辅音的类型学}章 \结束{文档}
\章节[需要提示的章节标题]{需要提示的部分章节标题\protect\\}
\文档类[12pt]{book} \使用包[T1]{fontenc} \def\magyarOptions{defaults=hu-min,chapterhead=no} \使用包[magyar]{babel} \使用包{fix-cm} \usepackage[a4纸张,边距=1.5英寸,高度圆角]{几何} \使用包{titlesec} \标题格式 {\sfamily\bfseries} {} {0pt} {\formatchaptertitle{\rule{6pt}{\ht\strutbox}\,\chapter}}} \titleformat{name=\chapter,numberless}[块] {\sfamily\bfseries} {} {0pt} {\formatchaptertile{\rule{6pt}{\ht\strutbox}\hphantom{\,0.}}} \新闻存储盒{\chapternumberbox} \新命令{\formatchaptertitle}[2]{% \sbox{\chapternumberbox}{\fontsize{2cm}{2.5cm}\selectfont#1}% \usebox{\chapternumberbox}\hspace{1pc}% \parbox[b]{\dimeval{\textwidth-\wd\chapternumberbox-1pc}}{% \大\raggedright\MakeUppercase{#2}% }% } \开始{文档} \正面物质 \目录 \主要事项 \第{章导言} \第{音节辅音的类型学}章 \结束{文档}
-
-
-
-
-
@KoNstantin据我所知 马扎尔语 选项仅用匈牙利语记录,您可能知道我不熟悉该语言,所以我查看了代码,发现了一个很有前途的选项。 请参见 math.me.hu/latex/magyarldf-doc.pdf 如果你懂匈牙利语。 – 白鹭 评论 6月17日12:46
\documentclass[12pt,twoside,openany]{book}%openany避免在章节后插入空白包。 \使用包[T1]{fontenc} \def\magyarOptions{defaults=hu-min,chapterhead=no} \使用包[magyar]{babel} \使用包{fix-cm} \usepackage〔a4纸张,边距=1.5英寸,高度四舍五入〕{几何形状} \使用包{titlesec} \使用包[utf8]{inputenc} %这里是我使用的一些自定义修改。 这些代码用于标题上斜体灰色的章节标题(偶数左,奇数右),不带“章节号”。 \页面样式{花哨} \fancyhf{}%清除所有页眉和页脚字段 \fancyhead[LE]{\textit{\textsf{\textcolor{gray}{nouppercase{\leftmark}}}}%偶数页:左页眉 \fancyhead[RO]{\textit{\textsf{\textcolor{gray}{\tuppercase{\leftmark}}}}%奇数页:右页眉 \renewcommand{\headrulewidth}{.1pt}%可选:标题下的行 \renewcommand{\footrulewidth}{0pt}%可选:页脚上方的行,0pt表示没有行 \更新命令{\chaptermark}[1]{% \标记两个{#1}{}% }