summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/semtex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-10-03 21:48:56 +0000
committerKarl Berry <karl@freefriends.org>2020-10-03 21:48:56 +0000
commit00a39cac37f80a75dbdf467250d8bf75cecb4db6 (patch)
tree77061b3c521c0eb563efe29217fa876b278df9b7 /Master/texmf-dist/doc/latex/semtex
parent0069692ff697680e3a6423929b9ae589df48087e (diff)
semtex (3oct20)
git-svn-id: svn://tug.org/texlive/trunk@56530 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/semtex')
-rw-r--r--Master/texmf-dist/doc/latex/semtex/semtex.pdfbin61300 -> 63446 bytes
-rw-r--r--Master/texmf-dist/doc/latex/semtex/semtex.tex20
2 files changed, 13 insertions, 7 deletions
diff --git a/Master/texmf-dist/doc/latex/semtex/semtex.pdf b/Master/texmf-dist/doc/latex/semtex/semtex.pdf
index 6500750b395..3928388d96f 100644
--- a/Master/texmf-dist/doc/latex/semtex/semtex.pdf
+++ b/Master/texmf-dist/doc/latex/semtex/semtex.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/semtex/semtex.tex b/Master/texmf-dist/doc/latex/semtex/semtex.tex
index e390c4ba237..67f8d548bf0 100644
--- a/Master/texmf-dist/doc/latex/semtex/semtex.tex
+++ b/Master/texmf-dist/doc/latex/semtex/semtex.tex
@@ -38,7 +38,7 @@
\usepackage[nameinlink]{cleveref}
-\title{\texttt{semtex}: For stripped Seman\!\TeX\ documents (v0.44)}
+\title{\texttt{semtex}: For stripped Seman\!\TeX\ documents (v0.45)}
\date{\today}
\author{Sebastian Ørsted (\href{mailto:sorsted@gmail.com}{sorsted@gmail.com})}
@@ -58,7 +58,7 @@
basicstyle=\ttfamily\small,
commentstyle=\itshape\ttfamily\small,
alsoletter={\\},
- escapechar=@,
+ %escapechar=@,
breaklines=true,
breakindent={0pt},
captionpos=t,
@@ -123,7 +123,8 @@ the macros it provides by macros from other packages.
The package provides the commands \mylst!\SemantexBullet! and \mylst!\SemantexDoubleBullet!.
These commands print bullets which are smaller (and prettier, in my opinion)
-than the standard \lstinline!\bullet! command from~\LaTeX:
+than the standard \lstinline!\bullet! command from~\LaTeX.
+They are (of course) based on code by egreg, see \url{tex.stackexchange.com/a/564506/19809}.
\begin{LTXexample}
$ H^{\SemantexBullet} $,
$ H^{\SemantexDoubleBullet} $
@@ -132,12 +133,17 @@ $ H^{\SemantexDoubleBullet} $
You can recreate them yourself as follows, rendering
the package \pack{semtex} unnecessary for this purpose:
\begin{lstlisting}
-\newcommand\SemantexBullet{%
- \raisebox{-0.25ex}{\scalebox{1.2}{$\cdot$}}%
+\usepackage{graphicx}
+
+\makeatletter
+\DeclareRobustCommand\SemantexBullet{%
+ \mathord{\mathpalette\SemantexBullet@{0.5}}%
}
-\newcommand\SemantexDoubleBullet{%
- \SemantexBullet\SemantexBullet
+\newcommand\SemantexBullet@[2]{%
+ \vcenter{\hbox{\scalebox{#2}{$\m@th#1\bullet$}}}%
}
+\DeclareRobustCommand\SemantexDoubleBullet{\SemantexBullet \SemantexBullet}
+\makeatother
\end{lstlisting}
\chapter*{Replacements for \texorpdfstring{\textbackslash\texttt{left} and~\textbackslash\texttt{right}}{\left and \right}}