I am preparing a document and in the course of this, there are some problems.

1) How can I connect the upper left with the left bottom edge and similarly the right upper and lower right edges in the design of the chapter?

2) At the beginning of each chapter is a initial letter. If the \tableofcontents is arranged in 2 columns, then the text shifts from it to the right. Whether it is possible to avoid it?

enter image description here

If the \tableofcontents is made out in 1 column or if it is inserted in the end of the document this problem does not arise.

enter image description here

3) How to make a sparce text in the title of the chapter (on the screen, and not in the content?





\def\thickhrulefill{\leavevmode \leaders \hrule height 0.5ex \hfill \kern \z@}
\def\newrule{\leavevmode \leaders \hrule height 2pt \hfill \kern \z@}

  {\parindent \z@ \centering \reset@font
        {\large \bfseries \@chapapp{} \thechapter}
        \quad \thickhrulefill
        \huge \bfseries   #1\par\nobreak

    \vskip 10\p@ 

  {\parindent \z@ \centering \reset@font
        \huge \bfseries  #1\par\nobreak

    \vskip 10\p@ 




\usepackage[paper=a4paper, verbose, centering]{geometry}






{\ \titlerule*[.5pc]{.}\;\thecontentspage} 

{\ \titlerule*[.5pc]{.}\;\thecontentspage} 

{\ \titlerule*[.5pc]{.}\;\thecontentspage} 

{\ \titlerule*[.5pc]{.}\;\thecontentspage} 




\ULdepth = 0.16em



\chapter{С чего начать\ldots}
\vbox to 10mm{\vss\usebox{\B}\vspace*{-3mm} }
\noindent text.text.text...
  • Thank you For the edit! This is my first time using this resource is not yet completely understood. – Dmitriy Feb 7 '18 at 18:44
  • Welcome! You are using font macros which have been obsolete for a few decades (e.g. \bf) and ought not be used in LaTeX. You are also introducing a lot of spaces which you probably don't want. Whether this is the source of the shift I'm not sure, but I'd start by getting rid of those. You are missing \end{document}. I recommend using lettrine for the initial letter. You can use TikZ for the joining, I think, though I'm not certain I've understood correctly. Please try to reduce your example to just what's necessary to reproduce the problem. – cfr Feb 8 '18 at 2:19
  • Why load enumitem and then not use it to change the appearance of enumerate counters? Remove graphics and color. xcolor loads color and graphicx supersedes graphics. Don't load enumerate if using enumitem. Ask for the compatibility option if you need it. Are you trying to set your whole document \sloppy? I don't know if it will work in the preamble, but that's a mad thing to do. Certainly don't bother with niceties such as microtype in this case. Its like fussing over your lemon sherbet while a swarm of locusts consumes your harvest. – cfr Feb 8 '18 at 2:27
  • Also, nobody right now can reproduce your problem because we don't have the files. You can use example-image etc. (which everyone has) if you need images for your example. Also, please clarify your engine. – cfr Feb 8 '18 at 2:28

Designed the Chapter this way:

{\lquercus\redstar\rquercus~~\@chapapp  \thechapter\hfill#1~~\lquercus\redstar\rquercus}\hspace*{0.25\parindent}}}
\vskip 10\p@}

Result: enter image description here

Making initial letter:


We had to replace the Cyrillic characters with similar in appearance Latin characters.

Excellent site!


Thank you for the helpful tips in the comments!

Removed some unnecessary packages (amsthm, mathtext, enumerate, graphics, color, etoolbox, calc).

Disable the parameter \sloppy. Feared overflow lines, but it didn't happen. The view became much better, but after that in some places there was absolutely unnecessary number of consecutive transfers. To address this issue added to the preamble

\doublehyphendemerits = 1000000
\finalhyphendemerits = 10000

and corrected the text where it was needed.

Fixed the team

\AtBeginDocument {\ renewcommand \ contentsname {\ large \ bf Contents}}


\AtBeginDocument {\ renewcommand \ contentsname {\ large \ textbf {Contents}}}

Corrected the preamble to the previous question.

I can not use the lettrine package (there are no decorative Cyrillic fonts in TeXLive, unfortunately not).

I use dvips. Letters in .eps format (in Inkscape from the corresponding .ttf font). Insert here did not, as he kept the letters with a resolution of 1200 dpi and the picture looks on this site is huge. In principle, \tableofcontents can be placed at the end of the document, this is uncritical.

But still I would like to know if it is possible to connect the edges of the upper and lower lines in the design of the chapter, so that a frame around the title of the chapter turns out.

The document has a normal structure (titlepage, chapter1 ... chapter X, tableofcontents. Some chapters have minitoc in 1 column; some in 2 columns, and the first and at all without minitoc. Chapter with a minitoc in 2 columns:


\chapter{Chapter 1}

\vbox to 10mm{\vss\usebox{\PP}\vspace*{-2.3mm}}
\noindent text.text.text
\section{Section 1.1}
\subsection{Subsection 1.1.1}
\section{Section 1.2}
\subsection{Subsection 1.1.2}

and the like.


P.S. (10.04.2019) I solved the first problem so:

\centering\includegraphics[width=1.7cm]{v}% The extra space after the drop cap disappeared

I also slightly corrected the design of the Chapter:


Result: enter image description here

Files v (the frame around the letters) and uzel38 created in the program Knotter.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.