summaryrefslogtreecommitdiffstats
path: root/lsr_env.tex
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2022-04-08 09:34:36 +0100
committerYann Herklotz <git@yannherklotz.com>2022-04-08 09:34:36 +0100
commit1c33b587665dd00725e5c801968507e7a7c09159 (patch)
tree025cc3ffe99106d56da8358d18bcca6b30add3ad /lsr_env.tex
parentf1cdc82def499275f1e74c47e7efbbbd9beb6306 (diff)
downloadlsr22_fvhls-1c33b587665dd00725e5c801968507e7a7c09159.tar.gz
lsr22_fvhls-1c33b587665dd00725e5c801968507e7a7c09159.zip
Add modifications
Diffstat (limited to 'lsr_env.tex')
-rw-r--r--lsr_env.tex52
1 files changed, 45 insertions, 7 deletions
diff --git a/lsr_env.tex b/lsr_env.tex
index ae0684a..771af80 100644
--- a/lsr_env.tex
+++ b/lsr_env.tex
@@ -1,3 +1,4 @@
+%% macros=mkvi
\startenvironment lsr_env
\setupcolors[state=start]
@@ -38,25 +39,33 @@
width=middle,
]
-% @see http://wiki.contextgarden.net/Command/setupinterlinespace
-% Double spacing is line=5.6ex and one and half spacing is line=4.2ex.
-% However, closest we can get like MS Word 1.5 line spacing.
-\setupinterlinespace[line=3.8ex]
-
% @see http://wiki.contextgarden.net/Command/setuppagenumbering
\setuppagenumbering[location={footer,middle}]
+\definestructureconversionset [frontpart:pagenumber] [] [romannumerals]
+
+\startsectionblockenvironment [bodypart]
+ \setcounter[userpage][1]
+\stopsectionblockenvironment
% ==========================================================================
% Headers
% ==========================================================================
+\setuphead[chapter][
+ style={\bfd},
+ header=empty,
+]
+
+\startsectionblockenvironment [bodypart]
\setuplabeltext[chapter=Chapter~]
\setuphead[chapter][
style={\bfd},
header=empty,
align=flushright,
+ commandbefore={\blank[-0.3cm]},
after={\blank[4*line]},
- commandbefore={\blank[small]},
+ before={\blank[4*big,force]},
]
+\stopsectionblockenvironment
% @see http://wiki.contextgarden.net/Command/setupindenting
% @see http://wiki.contextgarden.net/Indentation
@@ -151,7 +160,36 @@
% \setupbtx[default:cite][alternative=authoryear]
% @see https://tex.stackexchange.com/a/294571
\usebtxdataset[references]
-\setupbtx[default:cite][alternative=authoryear]
\usebtxdefinitions[apa]
+\setupbtx[default:cite][alternative=authoryear]
+
+\starttexdefinition mutable protected btx:aps:doi-url #text
+ \ifconditional\btxinteractive
+ \btxdoifelse {doi} {
+ DOI: \goto {\btxflush{doi}} [url(https://dx.doi.org/\btxflush{doi})]
+ } {
+ \btxdoifelse {url} {
+ \goto {\btxflush{url}} [url(\btxflush{url})]
+ } {
+ #text
+ }
+ }
+ \else
+ #text
+ \fi
+\stoptexdefinition
+
+\starttexdefinition mutable protected btx:apa:editor-in
+ \btxdoif {booktitle} {
+ \btxlabeltext{In}
+ \btxspace
+ \texdefinition{btx:apa:composed-title}{booktitle}
+ \btxperiod
+ }
+\stoptexdefinition
+
+\def\paragraph#1{%
+ \bold{#1}%
+}
\stopenvironment