sb2nov: fix margin problems

This commit is contained in:
Sina Atalay 2024-05-17 15:59:12 +03:00
parent c7a5e9008b
commit 79c2ac1ba6
4 changed files with 2 additions and 56 deletions

View File

@ -3,5 +3,5 @@
((* endif *)) ((* endif *))
\begin{onecolentry} \begin{onecolentry}
\textbullet \hspace{<<design.margins.entry_area.bullet_width>>-0.2cm}<<entry.bullet>> $\circ$ <<entry.bullet>>
\end{onecolentry} \end{onecolentry}

View File

@ -105,7 +105,7 @@
parsep=<<design.margins.highlights_area.vertical_between_bullet_points>>, parsep=<<design.margins.highlights_area.vertical_between_bullet_points>>,
partopsep=0pt, partopsep=0pt,
itemsep=0pt, itemsep=0pt,
leftmargin=<<design.margins.highlights_area.left>> + 10pt + <<design.margins.entry_area.bullet_width>> leftmargin=<<design.margins.highlights_area.left>> + 10pt
] ]
}{ }{
\end{itemize} \end{itemize}
@ -122,20 +122,6 @@
\end{adjustwidth} \end{adjustwidth}
} % new environment for one column entries } % new environment for one column entries
\newenvironment{onecolentrybulleted}{
\onecolentry
\setcolumnwidth{<<design.margins.entry_area.bullet_width>>, \fill}
\begin{paracol}{2}
\vspace*{\fill}
\textbullet
\vspace*{3px}
\vspace*{\fill}
\switchcolumn
}{
\end{paracol}
\endonecolentry
} % new environment for one column entries with bullets
\newenvironment{twocolentry}[2][]{ \newenvironment{twocolentry}[2][]{
\onecolentry \onecolentry
\def\secondColumn{#2} \def\secondColumn{#2}
@ -147,18 +133,6 @@
\endonecolentry \endonecolentry
} % new environment for two column entries } % new environment for two column entries
\newenvironment{threecolentry}[3][]{
\onecolentry
\def\thirdColumn{#3}
\setcolumnwidth{<<design.margins.entry_area.bullet_width>>, \fill, <<design.margins.entry_area.date_and_location_width>>}
\begin{paracol}{3}
#2 \switchcolumn
}{
\switchcolumn \raggedleft \thirdColumn
\end{paracol}
\endonecolentry
} % new environment for three column entries
\newenvironment{header}{ \newenvironment{header}{
\setlength{\topsep}{0pt}\par\kern\topsep\centering\linespread{1.5} \setlength{\topsep}{0pt}\par\kern\topsep\centering\linespread{1.5}
}{ }{

View File

@ -22,7 +22,6 @@
\vspace{<<design.margins.highlights_area.vertical_between_bullet_points>>-3px} \vspace{<<design.margins.highlights_area.vertical_between_bullet_points>>-3px}
\begin{onecolentry} \begin{onecolentry}
\hspace{<<design.margins.entry_area.bullet_width>>}%
((* endif *)) ((* endif *))
((* if entry.doi -*)) ((* if entry.doi -*))
\href{<<entry.doi_url>>}{<<entry.doi>>} \href{<<entry.doi_url>>}{<<entry.doi>>}

View File

@ -5,28 +5,6 @@ import pydantic
from .. import ThemeOptions, LaTeXDimension, Margins, EntryAreaMargins from .. import ThemeOptions, LaTeXDimension, Margins, EntryAreaMargins
class EntryAreaMarginsForSb2nov(EntryAreaMargins):
"""This class is a data model for the entry area margins."""
bullet_width: LaTeXDimension = pydantic.Field(
default="0.6 cm",
title="Width of the Entry Bullet",
description=(
"The width of the bullet for each entry. The default value is 0.6 cm."
),
)
class MarginsForSb2nov(Margins):
"""This class is a data model for the margins."""
entry_area: EntryAreaMarginsForSb2nov = pydantic.Field(
default=EntryAreaMarginsForSb2nov(),
title="Entry Area Margins",
description="Entry area margins.",
)
class Sb2novThemeOptions(ThemeOptions): class Sb2novThemeOptions(ThemeOptions):
"""This class is the data model of the theme options for the `sb2nov` theme.""" """This class is the data model of the theme options for the `sb2nov` theme."""
@ -53,8 +31,3 @@ class Sb2novThemeOptions(ThemeOptions):
" 24 pt." " 24 pt."
), ),
) )
margins: MarginsForSb2nov = pydantic.Field(
default=MarginsForSb2nov(),
title="Margins",
description="Page, section title, entry field, and highlights field margins.",
)