Skip to content

Commit 0e39e9a

Browse files
committed
Merge branch 'fix-natorf' of github.com:oetiker/lshort into fix-natorf
2 parents 9ea321a + 5ee5502 commit 0e39e9a

File tree

2 files changed

+25
-15
lines changed

2 files changed

+25
-15
lines changed

.github/workflows/CI.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ jobs:
1919
should_skip: ${{ steps.skip_check.outputs.should_skip }}
2020
steps:
2121
- id: skip_check
22-
uses: fkirc/skip-duplicate-actions@v4
22+
uses: fkirc/skip-duplicate-actions@v5
2323
with:
2424
cancel_others: 'true'
2525
paths: '["src/**", "Makefile", "fixdate.pl"]'
2626

2727
check:
2828
name: Check LaTeX
2929
needs: skip_check
30-
if: ${{ needs.skip_check.outputs.should_skip != 'true' }}
30+
if: ${{ needs.skip_check.outputs.should_skip != true }}
3131
runs-on: ubuntu-latest
3232
container: ghcr.io/xu-cheng/texlive-small:latest
3333

@@ -40,7 +40,7 @@ jobs:
4040
tlmgr install latexindent
4141
4242
- name: Checkout the repository
43-
uses: actions/checkout@v3
43+
uses: actions/checkout@v4
4444

4545
- name: Run ChkTeX
4646
run: |
@@ -58,7 +58,7 @@ jobs:
5858
build_latex:
5959
name: Build LaTeX
6060
needs: skip_check
61-
if: ${{ needs.skip_check.outputs.should_skip != 'true' }}
61+
if: ${{ needs.skip_check.outputs.should_skip != true }}
6262
runs-on: ubuntu-latest
6363
container: ghcr.io/xu-cheng/texlive-full:latest
6464

@@ -72,7 +72,7 @@ jobs:
7272
apk add py3-pygments
7373
7474
- name: Checkout the repository
75-
uses: actions/checkout@v3
75+
uses: actions/checkout@v4
7676
with:
7777
submodules: recursive
7878

src/bibliography.tex

+20-10
Original file line numberDiff line numberDiff line change
@@ -479,8 +479,9 @@ \subsection{Citing commands}
479479
\end{example}
480480

481481
Another set of commands allows us to extract specific information from
482-
the bibliographic entry, and use the information directly in the text. This is includes commands such as \csi{citeauthor},
483-
\csi{citetitle}, \csi{citeyear}, \csi{citedate}, \csi{citeurl}.
482+
the bibliographic entry, and use the information directly in the text. This
483+
includes commands such as \csi{citeauthor}, \csi{citetitle}, \csi{citeyear},
484+
\csi{citedate}, \csi{citeurl}.
484485

485486
\begin{example}[standalone,
486487
biber,
@@ -553,20 +554,28 @@ \subsection{Citing commands}
553554

554555
\subsection{More about entries}
555556

556-
\hologo{biber} uses ``and'' as a separator in author entries. To prevent
557-
this behaviour, enclose ``and'' in curly brackets
557+
\hologo{biber} uses \enquote{and} as a separator in certain entries. To prevent
558+
this behaviour, enclose \enquote{and} in curly brackets
558559
\begin{minted}{bibtex}
559560
@book{kru,
560-
author = {Kruger {and} sons}
561+
publisher = {Kruger {and} sons}
561562
}
562563
\end{minted}
563564
The same trick may be useful when \hologo{biber} changes capitalisation, even
564-
though it shouldn't.
565+
though it shouldn't. On top of this \hologo{biber} splits author entries into
566+
smaller bits which are then used elsewhere. So in \autoref{lst:bibfile} the
567+
name Jane Diviner is split into the first name Jane and the surname Diviner.
568+
When you don't want this, enclose the entire name in braces
569+
\begin{minted}{bibtex}
570+
@book{kru,
571+
author = {{Kruger brothers}}
572+
}
573+
\end{minted}
565574

566575
When writing about certain subject it often happens that the same author or
567576
publishing company released several books. In order to reuse the information in
568-
several entries in the \eei{.bib} file, a special entry \cargv{xdata} is available. It may be used
569-
like this
577+
several entries in the \eei{.bib} file, a special entry \cargv{xdata} is
578+
available. It may be used like this
570579

571580
\begin{example}[standalone,
572581
biber,
@@ -578,8 +587,8 @@ \subsection{More about entries}
578587
\begin{filecontents}{example2.bib}
579588
%!hideend
580589
@xdata{krugers,
581-
author = {Kruger {and} sons},
582-
publisher = {Krugers Inc.},
590+
author = {{Kruger brothers}},
591+
publisher = {Kruger {and} sons},
583592
location = {Paris}
584593
}
585594

@@ -604,3 +613,4 @@ \subsection{More about entries}
604613
\printbibliography
605614
\end{document}
606615
\end{example}
616+

0 commit comments

Comments
 (0)