Hot
- Let a symbol newcommand appear like the defining command [duplicate]by Asigan on April 10, 2026 at 9:00 pm
I searched the question on the site and it seems it has not been asked. I asked gpt and it gave a solution. I am creating an ask-answer pair to record it. Question. Is it possible to realize the following operation in texstudio? I defined \renewcommand{\d}{\mathrm{d}} for integral and typed \d throughout the document. But then for some reason I would like to let all \d in the code appear as \mathrm{d}. If I use searching - replace - replace all it may also modify \delta etc. I also could not use replace with \d (with a space) because there may be cases like \d\mu where I did not add space. I found this post link, but as I am only substituting symbol-type command, would there be simpler ways?
- How to use IL3 and CS encoding? [closed]by Grzegorz Brzęczyszczykiewicz on April 10, 2026 at 7:24 pm
How to use IL3 encoding? IL3 is for languages like Esperanto or Maltese? And the same for the encoding CS? If I specifically want to demonstrate this encoding and how it's used? I know there's XeLaTeX and LuaLaTeX but this is not what I'm talking about.
- Include header with logo, and footer with page number, in class meetingminsby cmp on April 10, 2026 at 5:18 pm
Please help me to include a header and footer in the meetingmins class. I want to right-align a logo, and have page x of y at the bottom of the page. In addition, I want the logo on the first page only. I wish the page numbers to be on all pages. Thank you for any time you spend on this. Here is a MWE from the meetingmins package documentation: \documentclass[11pt]{meetingmins} \usepackage{graphicx} \usepackage{fancyhdr} % Remove header line (optional) \renewcommand{\headrulewidth}{0pt} % Add space so content doesn't overlap header \setlength{\headheight}{90pt} \setlength{\headsep}{20pt} % Meeting info \setcommittee{Project Team Alpha} \setmembers{Alice Smith, Bob Johnson, Charlie Lee, Dana White} \setdate{April 8, 2026} \newcommand{\meetingstart}{10:00 AM} \newcommand{\meetingend}{11:30 AM} \newcommand{\setlocation}{Conference Room A} \begin{document} \maketitle \section{Call to Order} The meeting was called to order at \meetingstart. \section{Attendance} \textbf{Present:} Alice Smith, Bob Johnson, Dana White \textbf{Absent:} Charlie Lee \end{document}
- Aligning nested enumerations in ConTeXtby ssokolen on April 10, 2026 at 3:55 pm
This seems like a task which should have an answer somewhere out there, but I'm having trouble finding it. I am trying to align a nested enumeration in ConTeXt so that the inner level is offset from the outer level. I am using alternative=left, but the inner numbers remain flush with the outer numbers regardless of distance, width, and margin. I would appreciate any advice on which options to test or which manuals to consult for a more detailed understanding. % Define the primary level \defineenumeration[outer] [ text=, alternative=left, width=1em, margin=1em, distance=1em, ] % Define the nested level \defineenumeration[inner] [ text=, alternative=left, width=2em, margin=2em, distance=2em, within=outer ] \starttext \startouter This is the outer enumeration (Level 1). \startinner This is the inner enumeration (Level 2). I need the numbers here to be shifted right. \stopinner \stopouter \stoptext
- TeX capacity exceeded error which isn't fixed by removing the line that triggered itby Vuraxis on April 10, 2026 at 3:43 pm
I've seen quite a few past posts of people who get this error, but not in this specific way. The error message itself is very familiar; "TeX capacity exceeded, sorry [input stack size = 10000]", but this didn't occur until I was over 1400 lines and 25 pages in. The specific addition which caused it was a simple hyperref; nothing more than adding \label{Figure12} under a figure and \hyperref[Figure12]{Figure 12} a couple of paragraphs later. I tried changing the label name to something more unique in case it was a naming issue but that did nothing. Deleting both of those lines does nothing also. The error highlights a specific part of my code right near the top of the document (I've redacted the title page for anonymity and the introduction for brevity, since it's only words): \usepackage{graphicx} \usepackage{tikz} \usetikzlibrary{patterns} \usetikzlibrary{shapes.geometric, arrows} \usepackage{biblatex} \usepackage{algorithm} \usepackage{algpseudocode} \usepackage{relsize} \usepackage[hidelinks]{hyperref} \usepackage[a4paper, margin = 3.5cm]{geometry} \usetikzlibrary{positioning} \usepackage{amssymb} \usepackage{amsmath} \usepackage{amsthm} \usepackage{float} \usepackage{biblatex} \usepackage{kbordermatrix} \usepackage{hyperref} \hypersetup{colorlinks = true,linkcolor = blue,} \theoremstyle{definition} \newtheorem{Theorem}{Theorem}[section] \theoremstyle{definition} \newtheorem{Lemma}{Lemma}[section] \theoremstyle{definition} \newtheorem{Definition}{Definition}[section] \theoremstyle{definition} \newtheorem{Example}{Example}[section] \theoremstyle{definition} \newtheorem{Proposition}{Proposition}[section] \theoremstyle{remark} \newtheorem{Remark}{Remark} \theoremstyle{remark} \newtheorem*{Proof}{Proof} \begin{document} \maketitle \tableofcontents \section{Introduction} %a couple of paragraphs of introduction text go here \noindent Unless stated otherwise, the definitions, results and proofs presented in this paper are taken from \hyperref[cit1]{\cite{1}}. Examples, unless stated otherwise, are original. \section{Simplicial Complexes} \noindent We first define the notion of a simplicial complex, the foundation on which we will build our optimal algorithm. \begin{Definition} \textit{Let $V$ be a finite nonempty set, and let its elements be called \textbf{vertices}. A collection $K$ of nonempty subsets of $V$ is a \textbf{simplicial complex} if: }\\ It highlights that first \textit for reasons I can't deduce. That line is clearly not actually where the error is, because if I delete that line then the error persists and it simply highlights the next line. I assume if this was caused by some recursive loop like it is for most people, that the error would occur when I added that recursive loop, which is what is confusing me so much. The hyperref can't be the loop because removing it doesn't fix the error, but if there's some other part of the code which is breaking it (which would be a nightmare to track down), why was it able to compile that part of the code dozens of times and only broke when I added something unrelated?
- How to get non-compilable code without the % symbol?by Cham on April 10, 2026 at 3:24 pm
While I know that I can use % to comment out a line of code, I would like to get the same result (i.e. non-compiling text) in the middle of a block of text, like this (the brackets are here just to show the example): Blabla blabla bla bla bla [some non-compiling comments] bla bla blabla blab I don't want to write something like the following (i.e splitting the text paragraph): Blabla blabla bla bla bla % some non-compiling comments bla bla blabla blab Is it possible? I guess that I'll need to use some non-compiling macro, like \nc{} but I would prefer not to use something like it. In Mathematica, we have the ability to insert non-compiling codes with (* non-compiling text *)
- Adjusting the Width of Modified Enumitem Itemsby DDS on April 10, 2026 at 1:05 pm
Consider the code: \documentclass[12pt]{book} \usepackage[paperwidth=6.00in,paperheight=9.00in,top=.5in,bottom=.5in,left=.75in,right=.5in]{geometry} \textheight=7.25in \voffset=0.35in \usepackage{lipsum,enumitem} \begin{document} \pagestyle{empty} \begin{enumerate}[label={(\Roman*.)},itemindent=1em,leftmargin=0em] \item \lipsum[12] \item \lipsum[12] \item \lipsum[12] \item \lipsum[12] \item \lipsum[12] \end{enumerate} \end{document} which produces the output: I would like to reduce the width of the enumerate items by say, a factor of .75; however, when I tried embedding the enumeration within a minipage environment, there is no pagebreak. QUESTION: How may I adjust the width of the displayed items in the enumerate environment? Thank you.
- lttemplates: already advised for a class dedicated to a new collection from a publisher?by Denis Bitouzé on April 10, 2026 at 9:25 am
The lttemplates.dtx documentation says: LaTeX 2ε has always lacked a standard approach to customising the visual design of a document. Changing the looks of the standard classes involved either: Creating a new version of the implementation code of the class and editing it. Loading one of the many packages to customise certain elements of the standard classes. Loading a completely different document class, such as KOMA-Script or memoir, that allows easy customization. All three of these approaches have their drawbacks and learning curves. Now, suppose I have to create a class dedicated to a new collection from a publisher, who has asked a graphic designer to create the layout (and those folks sometimes have some pretty out-there ideas :). Would you recommend using lttemplates for this task? What I mean is: The book class already includes many features, the classes I developed, based on the book one, required the use of several packages, each of which offering multiple features, and so it seems that creating a new class from scratch, even for a fairly standard document type, is a colossal and very time-consuming task (not to mention the learning curve for lttemplates).
- biblatex citations swallow trailing punctuation (periods/commas not appearing after \cite)by Alex Keir on April 10, 2026 at 3:52 am
I am using biblatex with a numeric citation style, but I am encountering an issue where punctuation immediately following citation commands is not displayed in the compiled document. For example: This has been shown \cite{key}. compiles to: This has been shown[key] One workaround is to write two punctuation marks, as one gets swallowed but the second works, though this doesn't feel right. I have read biblatex can deal with punctuation in strange ways, but I can't see a solution to the issue happening following in text citations. Does anyone know what is going on and how I could fix it? Thanks! my package loading command is below \usepackage[ backend=biber, maxparens=1002, style=numeric,sorting=none]{biblatex}
- Skull emoji 💀 in pdfLaTeXby Bryan on April 9, 2026 at 11:47 pm
I’d like to include the skull emoji 💀 in a document compiled with pdfLaTeX but with colors similar to how it displays on my device in other contexts. I can get a skull with fontawesome, but it’s not quite the same: \documentclass{scrartcl} \usepackage{fontawesome5} \begin{document} \faSkull \end{document} creates a skull like which is black/white inverted compared to how my device normally shows 💀, where the skull is white, and the eye sockets are black. I cannot change to LuaTeX because what I am compiling is like, super large. I also tried something along the lines of \contourlength{0.5pt} and \contour{black}{\color{white}\faSkull} but that did not work well. Can anyone help get 💀 with black eye sockets on a white skull or something close to it? Thanks!
- Overlapping two disjunction (or conjunction) symbolsby paula on April 9, 2026 at 11:29 pm
Does anyone know a way to "overlap" two disjunction (or conjunction) symbols? Almost looking like a "W". It is sometimes used in infinitary logic!
- adjusting dvi driver settings for grodvi outputby lodwicz on April 9, 2026 at 8:02 pm
experimenting with groff output, i found the following warning in the grodvi man page: Bugs DVI files produced by grodvi use a different resolution (57,816 units per inch) from those produced by TeX. Incorrectly written drivers which assume the resolution used by TeX, rather than using the resolution specified in the DVI file, will not work with grodvi. I used to work with either 180dpi and 300dpi resolutions on TeX output; but to tell the truth, I think I forgot what the "resolution" in this context means. What is the "resolution" of TeX, if not 57 (decimal comma or thousand marker?) 816 units per inch? How how do I adjust my drivers to generate pk fonts in the default sizes for grodvi? My dvi driver reports the following in the logs (edited for space): Opening f:\progs\groff\dict.dvi (1 pages) Opening cmbx10 at 300 dpi from \progs\pkfonts\lj_base.fli: OK Opening cmr10 at 241 dpi from \progs\pkfonts\241\cmr10.pk: FAILED Opening cmr10 at 220 dpi from \progs\pkfonts\220\cmr10.pk: FAILED Opening cmr10 at 264 dpi from \progs\pkfonts\264\cmr10.pk: FAILED Opening cmr10 at 201 dpi from \progs\pkfonts\201\cmr10.pk: FAILED Opening cmr10 at 289 dpi from \progs\pkfonts\289\cmr10.pk: FAILED Opening cmr10 at 183 dpi from \progs\pkfonts\183\cmr10.pk: FAILED Opening cmr10 at 317 dpi from \progs\pkfonts\317\cmr10.pk: FAILED Opening cmr10 at 167 dpi from \progs\pkfonts\167\cmr10.pk: FAILED Opening cmr10 at 347 dpi from \progs\pkfonts\347\cmr10.pk: FAILED Opening cmr10 at 153 dpi from \progs\pkfonts\153\cmr10.pk: FAILED Opening cmr10 at 380 dpi from \progs\pkfonts\380\cmr10.pk: FAILED Opening cmr10 at 139 dpi from \progs\pkfonts\139\cmr10.pk: FAILED Opening cmr10 at 416 dpi from \progs\pkfonts\416\cmr10.pk: FAILED Cannot open font cmr10 at 241 dpi; 1 font files are open [etc] [1] TeX \special{papersize=8.500in,11.000in} ignored TeX \special{color gray 0} ignored So it is clear to me that the driver is finding the title font at 300dpi, magstep 2 (1.244 times larger than regular design) iirc of the body cmr10 241dpi.
- How to use Hyperref if I don't have the LaTeX code of the text I want to hyperlink to [closed]by math forever on April 9, 2026 at 7:13 pm
I'm writing solutions to exercise from a textbook for one of my classes and I wish to have links from the question to the answer and vice versa. I was just wondering if there's any way around that other than finding the source code for the book (it's open source so may exist). To clarify I have textbook with me, and I'm solving exercises from it. I'd like to be able to click on a question and go to its answer I've written and vice versa.
- I am trying to typeset a solution for finding the next number in a series using TiKZby Brion on April 9, 2026 at 6:30 pm
The following code snippet works, but I'm looking for a more elegant solution. Perhaps one using an inverse tree environment. \documentclass[12pt]{article} \usepackage{tikz} \begin{document} Problem: Find the next number in the following sequence:\\ 7 \quad 10 \quad 15 \quad 22 \quad 31...\\ Solution:\\ \begin{tikzpicture} \node (a) at (0,0) { 7}; \node (b) at (0:0.75) {10}; \node (c) at (0:1.50) {15}; \node (d) at (0:2.25) {22}; \node (e) at (0:3.00) {31}; \node [red] (f) at (0:3.75) {42}; \node (g) at (0.50,-1) { 3} edge [<-] (a) edge [<-] (b); \node (h) at (1.25,-1) { 5} edge [<-] (b) edge [<-] (c); \node (i) at (2.00,-1) { 7} edge [<-] (c) edge [<-] (d); \node (j) at (2.75,-1) { 9} edge [<-] (d) edge [<-] (e); \node [red] (k) at (3.50,-1) {11} edge [red] [<-] (e) edge [red] [->] (f); \node (l) at (1.00,-2) {2} edge [<-] (g) edge [<-] (h); \node (m) at (1.75,-2) {2} edge [<-] (h) edge [<-] (i); \node (n) at (2.50,-2) {2} edge [<-] (i) edge [<-] (j); \node [red] (o) at (3.25,-2) {2} edge [red] [<-] (j) edge [red] [->] (k); \node (p) at (5,-3.5) {}; \draw [->,red] (0,-3.5) .. controls +(up:1cm) and +(left:1.5cm) .. node {}(g); \end{tikzpicture} \setlength{\parskip}{0pt} \setlength{\parindent}{0pt} Compute the difference between each pair of numbers in the list.\\ Observe the pattern (every odd number beginning with 3, in this case.) \end{document}
- Ensuring consistent font sizingby dk30 on April 9, 2026 at 3:29 pm
I am currently using the following document class: \documentclass[ reprint, superscriptaddress, aps, pre, onecolumn, hidelinks, footinbib ]{revtex4-2}, for which the font size should be 10pt. I am creating figures in matplotlib using the following settings: mpl.rcParams.update({ "text.usetex": True, "text.latex.preamble": r"\usepackage{amssymb}", "font.family": "serif", "font.serif": ["DejaVu Serif", "Times New Roman", "Computer Modern Roman"], "font.size": 10, "axes.labelsize": 10, "axes.titlesize": 10, "xtick.labelsize": 10, "ytick.labelsize": 10, "svg.fonttype": "none", "xtick.direction": "in", "ytick.direction": "in", }). Given that I am not scaling the figures, I would expect the font sizes to match. However, the figures appear to have a larger font size. How can I ensure consistency in this case?
- How to draw a border on an A3 page?by 青山漫步 on April 9, 2026 at 3:09 pm
\startuseMPgraphic{square} path p; p := fullsquare xscaled 18cm yscaled 26cm; draw p withcolor darkgray withpen pencircle scaled 2pt; \stopuseMPgraphic \defineoverlay[watermark][\useMPgraphic{square}] \setupbackgrounds[page][background=watermark] \setuppapersize[A4][A4] \usetypescript[dejavu] \setupbodyfont[dejavu,12pt] \starttext \chapter{knuth} \input knuth \chapter{zapf} \input zapf This Pdfpage was rendered with\ \Context\ mark \contextmark.\crlf It uses \texenginename\ version \texengineversion\ as engine. \stoptext On an A4 page, we can draw a border on the current page using the above code. Now I want to use an A3 page to typeset a student exam paper, and I need to draw a border on the current A3 page. I used the same code, but the result is that two borders are drawn separately on the left and right pages. Is there any way to change this? Additionally, how can we display the current page number and the total number of pages of the exam paper in the header on an A3 page? \startuseMPgraphic{square} path p; p := fullsquare xscaled 18cm yscaled 26cm; draw p withcolor darkgray withpen pencircle scaled 2pt; \stopuseMPgraphic \defineoverlay[watermark][\useMPgraphic{square}] \setupbackgrounds[page][background=watermark] \setuppapersize[A4][A3,landscape] \setuparranging[2SIDE] %[2UP] \setuplayout[margin=0pt, width=fit] \setuppagenumbering[alternative=singlesided]%{doublesided}] \usetypescript[dejavu] \setupbodyfont[dejavu,12pt] \starttext {\rm The programs } {\ss in this article } $z=f(x,y)$ {\tt using Fortran 95 language} \startformula \iint_{D} \Big(\frac{\partial Q}{\partial x}-\frac{\partial P}{\partial y} \Big) \dd x \dd y= \oint_{L } P \dd x+Q \dd y \stopformula $\sqrt{3} =\ctxlua{tex.print(math.sqrt(3))}$ \currentdate \, \currenttime \par %当前时间 %\ctxlua{context(os.date())}%调用库函数打印当前时间 This Pdfpage was rendered with\ \Context\ mark \contextmark.\crlf It uses \texenginename\ version \texengineversion\ as engine. \stoptext
- Default fontenc changed from OT1 to T1 in pdflatex when generating tagged pdf?by Alain Stalder on April 9, 2026 at 11:01 am
See the following example: % !TEX TS-program = pdflatex \DocumentMetadata{lang=en,pdfstandard=ua-2,pdfstandard=a-4f,tagging=on,tagging-setup={math/setup=mathml-SE}} \documentclass{article} \usepackage[OT1]{fontenc} \usepackage{kantlipsum} \renewcommand{\familydefault}{\sfdefault} \begin{document} \section{Start} \kant[42] \end{document} As-is (with TexLive 2026) uses Computer Modern (cmss*.pfb), but if I remove the \usepackage[OT1]{fontenc} line, it uses Computer Modern Super (cm-super/*.pfb), hence I guess is then using T1 fontenc, and if I additionally remove the \DocumentMetadata line, then I am back to Computer Modern, the expected default in pdflatex. Was that a conscious decision? I could imagine that some tagged pdf features would not work (or not work well) with OT1 (i.e. more than generally with pdflatex)? If intentional, is it documented somewhere? I could not find it via search engines and looking at a few documents, but maybe is somewhere? Side note: The position of the text also moved in the example when activating tagged pdf (independently of fontenc).
- Tizk and circuitikz How to put frame around collection of commands inside?by Nasser on April 9, 2026 at 9:36 am
I am using circuitikz to make 2 small diagrams with spring mass. I'd like to put a frame around each. I tried many things, such as using \fbox and \node[draw=black, inner sep=5pt]{...}; but nothing works. I keep getting errors. Below is what I have as MWE \documentclass[tikz, border=2mm]{standalone} \usepackage{circuitikz} \usetikzlibrary{calc} \usepackage{amsmath} \usetikzlibrary{patterns,hobby,decorations.pathmorphing} \usetikzlibrary{fit} \begin{document} \begin{circuitikz}[remember picture, overlay] %\draw[step=1cm, gray, very thin] (current page.south west) grid (current page.north east); \coordinate (A) at (3,-.5); \coordinate (B) at (12,-.5); %ground %\node[draw=black, inner sep=5pt]{ %does not work \pattern[pattern=north east lines] (A) rectangle ($(A)+(4,0.15)$); \draw[thick] (A) -- ($(A)+(4,0)$); \draw ($(A)+(1.5,0)$) to[spring, l_=$k$] ($(A)+(1.5,-2)$); \draw ($(A)+(2.5,0)$) to[damper, l=$c$] ($(A)+(2.5,-2)$); \draw[fill=gray!30] ($(A)+(1,-2)$) rectangle ($(A)+(3,-3)$); \node[font=\Large] at ($(A)+(2,-2.5)$) {$m$}; \draw[thin,dashed] ($(A)+(3.25,-2.5)$) -- ($(A)+(4.5,-2.5)$); \node[align=left,font=\small] at ($(A)+(5.25,-2.5)$) {equilibrium\\position}; \draw[thin, ->] ($(A)+(4,-2.5)$) -- ($(A)+(4,-3)$); \node at ($(A)+(4,-3.2)$) {$x$}; \node at ($(A)+(2,-4)$) {$\boxed{m x'' + c x' + k x = 0}$}; %}; %does not work %------------------------------------ %\fbox{ %does not work \pattern[pattern=north east lines] (B) rectangle ($(B)+(4,0.15)$); \draw[thick] (B) -- ($(B)+(4,0)$); \draw ($(B)+(2,0)$) to[spring, l_=$k$] ($(B)+(2,-2)$); \draw[fill=gray!30] ($(B)+(1,-2)$) rectangle ($(B)+(3,-3)$); \node[font=\Large] at ($(B)+(2,-2.5)$) {$m$}; \draw[thin,dashed] ($(B)+(3.25,-2.5)$) -- ($(B)+(4.5,-2.5)$); \node[align=left,font=\small] at ($(B)+(5.25,-2.5)$) {equilibrium\\position}; \draw[thin, ->] ($(B)+(4,-2.5)$) -- ($(B)+(4,-3)$); \node at ($(B)+(4,-3.2)$) {$x$}; \draw[thick, ->] ($(B)+(2,-3)$) -- ($(B)+(2,-3.5)$); \node at ($(B)+(2,-3.75)$) {$F_0 \cos(\varpi)$}; \node at ($(B)+(2,-4.5)$) {$\boxed{m x'' + k x = F_0 \cos(\varpi)}$}; %} %does not work \end{circuitikz} \end{document} Compiling with lualatex gives this I'd like to make it look like this I do not want to make 2 separate \begin{circuitikz} and put fbox or frame outside each. But want just one \begin{circuitikz} as above, and inside it, put a frame around any collection of commands I want. Is this possible to do? All examples I saw says to put frame around the whole tikz picture. But that is not what I want. May be \node[draw=black, inner sep=5pt]{...}; does not work inside circuitik?
- setdoubleBAR offset in the startpiece environmentby ABV on April 8, 2026 at 11:58 pm
When using setdoubleBAR in musixtex, it has been generated an offset in the startpiece environment. The basic code is as follow: \documentclass[% border={10pt -21pt 23pt -6pt},% left bottom right top varwidth]{standalone}% ========== PAQUETES ========== \usepackage{tikz}% \usetikzlibrary{quotes}% \usetikzlibrary{shapes}% \usetikzlibrary{fit,positioning}% \usetikzlibrary{arrows.meta}% \usetikzlibrary{decorations}% \usepackage{amsmath}% \usepackage{tikz}% AÑADIENDO PARA LETRAS Y FORMAS \usepackage{xcolor}% AÑADIENDO PARA LETRAS Y FORMAS \usetikzlibrary{calc}% ← AGREGAR PARA LAS LINEAS \usepackage{musicography}% \usepackage{musixtex}% \input musixlyr% \usepackage{xcolor}% \xdefinecolor{red-undar}{RGB}{179,35,79}% \begin{document}% \begin{music}% \staffbotmarg5\Interligne% \font\B=phvb8t at 8pt% \font\A=phvb8t at 10pt% added for letter type. \setlyrics{cifradoA}{I VII6 V IV6 VI6 IV V IV6 V I VII6 I}% \setlyrics{cifradoB}{8 6 5 3 8 6 7 6 3 8 7 5 6 6 4 8 7 3 8 7 6 8}% \setsongraise1{3mm}% \setsongraise2{-1mm}% \hsize=\linewidth% \parindent16mm% \instrumentnumber{2}% \setstaffs1{1}% instrumento 1 (inferior) = 1 pentagrama \setstaffs2{1}% instrumento 2 (superior) = 1 pentagrama \setclef1{6}% inferior = clave de fa \setclef2{4}% superior = clave de DO \setmeter1{{\meterfrac44}}% inferior=4/4 \setmeter2{{\meterfrac44}}% inferior=4/4 superior=4/4 \setname1{Barítono}% nombre del instrumento 1 \setname2{Tenor}% nombre del instrumento 2 \songtop{2}% ← corchete desde instrumento 2 \songbottom{1}% ← hasta instrumento 1 \sepbarrules%ESTO elimina las líneas flotantes entre instrumentos \nobarnumbers% \interstaff{10}% \generalsignature{-1}% %\startextract \startpiece%\addspace\afterruleskip% \A\assignlyrics1{cifradoA}% \A\assignlyrics2{cifradoB}% \Notes\hqsk\wh{M}\zcharnote{-4}{\small\hspace*{-8mm}C.D.}&\hp\en% \Notes\sk&\hl{T}\en\bar% \Notes\wh{N}&\hl{S}\en% \Notes\sk&\hl{R}\en\bar% \Notes\wh{J}&\hl{S}\en% \Notes\sk&\hl{Q}\en\bar% \Notes\wh{K}&\hl{P}\hl{Q}\en\bar% \Notes\wh{M}&\hl{R}\hl{O}\en\bar% \Notes\wh{I}&\hl{P}\en%\bar% \Notes\sk&\hl{O}\en%\bar% \generalmeter{\meterfrac{4}4}% \alaligne% \Notes\wh{J}&\hl{N}\en% \Notes\sk&\hl{O}\en\bar% \Notes\wh{K}&\hl{P}\en% \Notes\sk&\hl{N}\en\bar% \Notes\wh{J}&\hl{Q}\en% \Notes\sk&\hl{P}\en\bar% \Notes\wh{M}&\hl{O}\en% \Notes\sk&\isluru1T\loffset{0.6}{\hl{T}}\en\bar% \Notes\wh{N}&\tslur1T\hl{T}\en% \Notes\sk&\hl{S}\en\bar% \Notes\wh{M}&\hl{T}\en% \Notes\sk&\hp\en\setdoubleBAR% \nolyr% \lyricsoff% \endpiece% \end{music}% \end{document}% The current ouput is as follow:
- Browsable list of available latex packages, styles, environments and their purposes?by morris roger on April 8, 2026 at 8:24 pm
To use CTAN one has to know what one is looking for. I would like to browse a list for packages, and (hopefully) say to myself, "that is something that may help me now or in the future". Then I would like to know what it does (usually omitted, along with the syntax, from the code). As an example: I would like a list of all the font syles (especially the ones that I never heard of) so that I can use fntsample to print out the characters. If one types "font styles" in CTAN there are only 28 hits, omitting fonts that I know exist. (I now see from answer that tug.org/FontCatalogue will work for fonts). That still leaves the myriad of other packages
- How to make METAFONT messages? [closed]by Grzegorz Brzęczyszczykiewicz on April 8, 2026 at 8:21 pm
I know you can just do message "Hello World!" but it doesn't "look like" a true message, it just looks like a random bit of text. I want it to start from a new line. I don't want my METAFONT log to look like jumbled text. Each message should start from a new line.
- "Two-layer" compilation from a single source?by Randall on April 8, 2026 at 1:47 pm
N.B.: I don't know if there is a technical term for what I'm trying to describe, so I just made up "two-layer" as a proxy. I have a set of course notes that have become popular among a group of colleagues. There is a desire to have an "instructor's version" with various instructional tips and hints for solutions. OK, fine, I have all that already in various files. As I've begun writing the instructor's version, it's become clear that having two separate source files (one for student, one for instructor) is supremely annoying. Any edits I want to make to the student content must then also be copied over to the instructor file. My desire is to have one source file, but two ways to compile. One would compile the whole works, creating the instructor's version. A second would skip all the instructor addenda, leading to the the student's version. This way, edits to the body and exposition need be made only once, not twice. I have to believe this is possible. I thought about creating an instructor's environment like a newtheorem to segregate out the instructor's content, but then I don't know how to toggle on or off the inclusion of those lines (and this is probably not the smart solution, anyway). Is there a way to create two versions of a document from a single file?
- Improvements to code used for a special headingby yannisl on April 8, 2026 at 11:51 am
The following code snippet draws a box in box for a heading. I would like some help to improve the code so that only the top right corner of the bottom box is rounded. Most of the values are currently hardcoded, as this forms part of a larger code that calls the macro \tikzspecial defines keys that are passed as options. The height of the blue top box should be 3cm, I seem to be about a couple of mm out, any help with that I would also appreciate. \documentclass[10pt,twoside]{book} \usepackage[bottom=2cm,top=2cm, left=3cm, right=4cm,showframe]{geometry} \usepackage{tikz} \usepackage{kantlipsum} \ExplSyntaxOn \makeatletter \NewDocumentCommand{\tikzspecial}{s O +m}{ %% First band \begin{tikzpicture}[remember~picture,overlay,inner~sep=0pt,outer~sep=0pt] \draw[draw=none,fill=cyan,outer~sep=0pt,inner~sep=0pt, xshift={-2cm},yshift=-\dimexpr3cm+10pt] (current~page.north~west) rectangle (\paperwidth,2.5cm); \end{tikzpicture} %% Second band with rounded corners \begin{tikzpicture}[remember~picture,overlay] \node~at~(current~page.north~west)~[yshift=-\dimexpr3cm+5.4pt,xshift=-10pt,%.3 klls corners on left anchor=south~west,inner~sep=10pt, outer~sep=0,white,fill=black, draw=none,rounded~corners=10pt,align=left, text~width=\textwidth]{\leftskip10pt \large \sffamily\LARGE\bfseries \IfBooleanTF{#1}{}{\thechapter.\space} #3\par }; \end{tikzpicture} \vspace*{4\baselineskip} \par \@afterindentfalse \@afterheading } \makeatother \ExplSyntaxOff \begin{document} \parindent=2em % simulate chapter \stepcounter{chapter} \tikzspecial*{Some Special Layout\\ Format} \kant[1-9] \end{document}
- Thickness and color of vertical line symbolsby J.-E. Pin on April 8, 2026 at 9:33 am
This is a follow up to this question, which asks for delimiters with thicker lines. I would like to add the option to choose the color of these delimiters, as in the following example \documentclass[]{amsart} \usepackage{color} \begin{document} \newcommand{\Red}[1]{\textcolor{red}{#1}} \newcommand{\mynorm}[1]{\Red{\lvert} #1 \Red{\rvert}} $\mynorm{v}$ \end{document} which produces this: Thus my question is how to add this color parameter to egreg's answer to the linked question. I tried to do it myself, with no success so far.
- Section heading number periods and no hanging indent (sockets, plugs, templates... oh my!)by Alexander Perlis on April 7, 2026 at 9:12 pm
A style guide demands: heading numbers end in a period; headings titles do not hang off the number. Example of desired output: In the past I could accomplish this by modifying \@seccntformat and \@hangfrom: \documentclass{article} \makeatletter \def\@seccntformat#1{\csname the#1\endcsname.\enskip} \def\@hangfrom#1{\noindent#1} \makeatother \begin{document} \section{My section title with an extremely long title spanning multiple lines} \subsection{My subsection title with an extremely long title spanning multiple lines} \end{document} But in TeX Live 2026 with \DocumentMetadata{tagging=on}, the hanging indent reappears! I believe the tagging code enables the socket sec/title/hang whose default plug does not call \@hangfrom. I could mimic the kernel plug with my own variant and assign it to the socket: % Put the following inside the `\makeatletter`/`\makeatother` block. \ExplSyntaxOn \cs_new_protected:Npn \__tag_set_title_NOHANG:nNnn #1 #2 #3 #4 %#1 level, %#2 boolean: nonumber? (will be later \l__head_nonumber_bool) %#3 formated number /hang space %#4 title { \protected@edef\l__tag_sec_tmpa_tl {#4} \tagstructbegin{tag=\UseStructureName{sec/#1/title},title-o={\l__tag_sec_tmpa_tl}} \cs_if_exist_use:N \__tag_gincr_para_begin_int: \bool_if:NF #2 { \tagstructbegin{tag=\UseStructureName{sec/#1/number}} } \setbox\@tempboxa\hbox{{#3}} \bool_set_false:N \l__tag_para_bool %\hangindent \wd\@tempboxa\noindent %%% <-- REMOVED \noindent %%% <-- INSERTED \bool_set_true:N \l__tag_para_bool \bool_if:NTF #2 { \box\@tempboxa } { \tagmcbegin{} \tag_mc_reset_box:N\@tempboxa \box\@tempboxa \tagmcend \tagstructend } \tagmcbegin{} } \NewTaggingSocketPlug{sec/title/hang}{myoverlay} { \__tag_set_title_NOHANG:nNnn #1 } \AssignTaggingSocketPlug{sec/title/hang}{myoverlay} \ExplSyntaxOff This feels fragile. Is there a better approach? Now the plot thickens. I am actually trying to use TeX Live 2026 lualatex-dev to benefit from a bug fix. But in lualatex-dev with \DocumentMetadata (with or without tagging=on), it seems \@seccntformat is no longer called, thus there is no longer a period after the section number. I believe lualatex-dev is bringing templates into play (in the file latex-lab-testphase-sec-template.sty). I am new to templates. How do I adjust the templates to put a period after the number? And do templates then perhaps also provide a less fragile way to eliminate \hangindent so I no longer need to replace \__tag_set_title_hang (earlier part of this post)?
- 3d Tikz Graph highlighting a specific interp line and axis problemby FishDrowned on April 7, 2026 at 2:43 pm
I'm currently trying to graphically represent Feynman's technique. Specifically, I have the function rad(atan(sqrt(2-x*x)))/(1+x*x) which is being parametrized as rad(atan(t*sqrt(2-x*x)))/(1+x*x). I managed to create the graph for the function, \documentclass{standalone} \usepackage{tikz,pgfplots} \pgfplotsset{compat=1.18} \begin{document} \begin{tikzpicture} \begin{axis}[ axis lines = center, axis on top, view={50}{30}, xlabel={$x$}, ylabel={$t$}, zlabel={}, xmin=-2, xmax=2, ymin=-2, ymax=2, zmin=-2, zmax=2, tick label style={font=\tiny} ] \addplot3[ surf, shader=faceted interp, faceted color=black!60, opacity=0.85, samples=22, samples y=18, domain=-1.4:1.4, domain y=-2:2, ] {rad(atan(y*sqrt(2-x*x)))/(1+x*x)}; \end{axis} \end{tikzpicture} \end{document} But I'm having trouble figuring out how to a) highlight the specific line along the function that represents rad(atan(sqrt(2-x*x)))/(1+x*x) and b) getting the axis lines to be above and below the 3d surface when the surface is above and below.
- Difference between \def\R{{\mathbb{R}}} and \def\R{\mathbb{R}}by X3nius on April 7, 2026 at 2:14 pm
I don't understand what the difference is between \def\R{{\mathbb{R}}} and \def\R{\mathbb{R}} When compiling \R (in math mode, obviously), I get ℝ in both cases and it doesn't show an error.
- How to plot y = x^{2/3} + 0.8 cos(kx) √(3-x²) in LaTeX TikZby hola on April 7, 2026 at 1:45 pm
I would like to plot the following function in LaTeX using TikZ or pgfplots: \[ y = x^{2/3} + 0.8 \cdot \cos(kx) \cdot \sqrt{3 - x^2} \] The domain is \( - \sqrt{3} \leq x \leq \sqrt{3} \). I need to create a nice graph where: The curve looks smooth I can easily change the value of \( k \) (number of oscillations) The modulated amplitude (the \( \sqrt{3-x^2} \) part) is clearly visible I have tried basic \addplot but I have problems with the fractional power \( x^{2/3} \) and with making the cosine oscillation look good. MWE (Minimal Working Example): \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \begin{document} \begin{tikzpicture} \begin{axis} \addplot {x^(2/3)}; % this part works, but adding the rest is difficult \end{axis} \end{tikzpicture} \end{document} pgfplots tikz-pgf plot functions graphics
- How are uppercase Greek letters handled in T1? [closed]by Grzegorz Brzęczyszczykiewicz on April 7, 2026 at 7:01 am
Does it auto-switch to OT1 internally, or is there another encoding specifically for these "missing" letters? I'm specifically talking about these specific letters: and not to the entire Greek alphabet. The reason why I'm asking about them is that these letters are included in OT1, but I don't see them anywhere in the definition of T1.
- Why can't I use \AddToHook{shipout/background} in conjunction with \@starttoc/\tableofcontents?by Elayson Abreu on April 7, 2026 at 12:22 am
When I use \AddToHook{shipout/background} in conjunction with @starttoc, the content appears in first page, but not the following ones. Why? MWE: \documentclass{article} \makeatletter \AddToHook{shipout/background}{\lower .5\paperwidth \vtop{XYZ\@starttoc{toc}}} \makeatother \begin{document} \addcontentsline{toc}{section}{ABCDEFG} \addcontentsline{toc}{section}{HIJKLMN} \null\newpage\null \end{document} In the image below, XYZ appears on both pages, but @starttoc only appears on the first one. UPDATE I'll post a more complete example of what I'd like to do, following John Kormylo's response. I would like hyperlinks to work when hyperref is loaded. Unfortunately, they're not working here. \documentclass{article} \usepackage{lipsum} \usepackage[colorlinks]{hyperref} \usepackage[showframe,top=2cm]{geometry} \def\sec#1{\par\leavevmode\addcontentsline{dates}{sec}{#1}} \makeatletter \def\l@sec#1#2{#1\par\medskip} \def\structure{\@starttoc{dates}} \makeatother \AddToHook{shipout/background}{\lower\dimexpr2cm+\topskip \vtop{\usebox\structbox}} \AtBeginDocument{ \newbox\structbox \setbox\structbox=\vtop{\structure} } \begin{document} \sec{01/01/2026} \lipsum[1] \newpage \sec{02/01/2026} \lipsum[1] \sec{03/01/2026} \lipsum[1] \end{document}