Hot
- LuaLatex fontspec problemby Stéphane Ducasse on April 29, 2026 at 9:28 am
I face the following problem since I migrated to texlive 2025 with the deprecation of gentium-tug When I build my books on a minimnal installation I get the following error (/home/runner/texlive/texmf-dist/tex/latex/fontspec/fontspec.sty (/home/runner/texlive/texmf-dist/tex/latex/fontspec/fontspec-luatex.sty (/home/runner/texlive/texmf-dist/tex/latex/base/fontenc.sty) (/home/runner/texlive/texmf-dist/tex/latex/fontspec/fontspec.cfg))) luaotfload | db : Reload initiated (formats: otf,ttf,ttc); reason: File not found: "Gentium-Regular.ttf". ! Package fontspec Error: (fontspec) The font "Gentium-Regular" cannot be found; this (fontspec) may be but usually is not a fontspec bug. Either (fontspec) there is a typo in the font name/file, the font is (fontspec) not installed (correctly), or there is a bug in (fontspec) the underlying font loading engine (fontspec) (XeTeX/luaotfload). It is working locally on my LaTeX 2025 installation going from %%% %%% Fonts & paragraph typography %%% \RequirePackage{fontspec,gentiumbook,opensans,FiraMono} \setmainfont{Gentium Book Plus} \setsansfont{Open Sans}[ \@ifpackagelater{opensans}{2019/06/19}% test for font naming bug {}% 2019/06/20 fixed it {BoldFont = {* Bold},} Scale=MatchLowercase, Numbers=OldStyle ] \setmonofont{Fira Mono}[ Scale=MatchLowercase, HyphenChar={-} % enable hyphenation (disabled by default in mono fonts) % caveat: LuaLaTeX doesn't support changing the actual character % alternative solution: \usepackage[htt]{hyphenat} ] to %%% %%% Fonts & paragraph typography %%% \RequirePackage{fontspec,opensans,FiraMono} \setmainfont{GentiumBookPlus} \setsansfont{Open Sans}[ sBoldFont = {* Bold}, Scale=MatchLowercase, Numbers=OldStyle ] \setmonofont{Fira Mono}[ Scale=MatchLowercase, HyphenChar={-} % enable hyphenation (disabled by default in mono fonts) % caveat: LuaLaTeX doesn't support changing the actual character % alternative solution: \usepackage[htt]{hyphenat} ] It works but my problem is that I build a system that helps users to generate books written in markdown and automatically translated to LaTeX and I propose a smaller version of texlive and hosting it on github Here are the dependencies I extract from my builds. TeX Live 2025 is frozen and will no longer be routinely updated. This happens when a new release is made, or will be made shortly. For general status information about TeX Live, see its home page: https://tug.org/texlive tlmgr: package repository https://ftp.tu-chemnitz.de/pub/tug/historic/systems/texlive/2025/tlnet-final/ (verified) tlmgr install: package already present: cm tlmgr install: package already present: graphics tlmgr install: package already present: graphics-cfg tlmgr install: package already present: graphics-def tlmgr install: package already present: l3backend tlmgr install: package already present: l3kernel tlmgr install: package already present: latex tlmgr install: package already present: latex-fonts tlmgr install: package already present: latexconfig tlmgr install: package already present: lua-uni-algos tlmgr install: package already present: lualibs tlmgr install: package already present: luaotfload tlmgr install: package already present: tex-ini-files tlmgr install: package already present: unicode-data [1/65, ??:??/??:??] install: atbegshi [5k] [2/65, 00:01/01:18:23] install: atveryend [2k] [3/65, 00:01/01:02:50] install: auxhook [2k] [4/65, 00:02/01:38:01] install: bigintcalc [7k] [5/65, 00:02/52:40] install: bitset [6k] [6/65, 00:02/37:28] install: booktabs [3k] [7/65, 00:03/50:34] install: environ [2k] [8/65, 00:03/46:34] install: epstopdf.x86_64-linux [1k] [9/65, 00:03/45:52] install: epstopdf [15k] [10/65, 00:04/37:52] install: epstopdf-pkg [5k] [11/65, 00:04/34:12] install: etexcmds [3k] [12/65, 00:05/40:27] install: etoolbox [9k] [13/65, 00:05/33:57] install: euenc [4k] [14/65, 00:05/32:02] install: filehook [5k] [15/65, 00:06/35:25] install: fira [15170k] [16/65, 00:09/00:12] install: fontaxes [5k] [17/65, 00:09/00:12] install: fontspec [27k] [18/65, 00:09/00:12] install: footmisc [8k] [19/65, 00:10/00:14] install: fp [19k] [20/65, 00:10/00:14] install: gentium-otf [3k] [21/65, 00:11/00:15] install: gettitlestring [3k] [22/65, 00:11/00:15] install: hycolor [4k] [23/65, 00:11/00:15] install: hyperref [88k] [24/65, 00:12/00:16] install: iftex [4k] [25/65, 00:12/00:16] install: import [3k] [26/65, 00:13/00:18] install: infwarerr [3k] [27/65, 00:13/00:18] install: intcalc [6k] [28/65, 00:13/00:18] install: kvdefinekeys [3k] [29/65, 00:14/00:19] install: kvoptions [8k] [30/65, 00:14/00:19] install: kvsetkeys [4k] [31/65, 00:14/00:19] install: l3packages [20k] [32/65, 00:15/00:21] install: letltxmacro [3k] [33/65, 00:15/00:21] install: listings [149k] [34/65, 00:16/00:22] install: ltxcmds [5k] [35/65, 00:16/00:22] install: makecmds [2k] [36/65, 00:17/00:23] install: memoir [68k] [37/65, 00:17/00:23] install: mptopdf.x86_64-linux [1k] [38/65, 00:18/00:25] install: mptopdf [37k] [39/65, 00:18/00:24] install: multirow [3k] [40/65, 00:18/00:24] install: opensans [1979k] [41/65, 00:20/00:24] install: pdfcol [3k] [42/65, 00:20/00:24] install: pdfescape [5k] [43/65, 00:21/00:25] install: pdftexcmds [7k] [44/65, 00:21/00:25] install: pgf [702k] [45/65, 00:22/00:26] install: polyglossia [123k] [46/65, 00:23/00:27] install: ragged2e [3k] [47/65, 00:23/00:27] install: refcount [3k] [48/65, 00:24/00:28] install: rerunfilecheck [4k] [49/65, 00:24/00:28] install: stringenc [23k] [50/65, 00:24/00:28] install: tcolorbox [230k] [51/65, 00:25/00:28] install: textcase [2k] [52/65, 00:26/00:30] install: tikzfill [5k] [53/65, 00:26/00:30] install: tipa [2809k] [54/65, 00:28/00:28] install: tools [47k] [55/65, 00:28/00:28] install: trimspaces [1k] [56/65, 00:29/00:29] install: ulem [7k] [57/65, 00:29/00:29] install: uniquecounter [3k] [58/65, 00:29/00:29] install: url [6k] [59/65, 00:30/00:30] install: varwidth [5k] [60/65, 00:30/00:30] install: xcolor [18k] [61/65, 00:30/00:30] install: xkeyval [9k] [62/65, 00:31/00:31] install: xpatch [2k] [63/65, 00:31/00:31] install: xtab [5k] [64/65, 00:32/00:32] install: xunicode [26k] [65/65, 00:32/00:32] install: zapfding [46k] running mktexlsr ... done running mktexlsr. running updmap-sys ... done running updmap-sys. regenerating fmtutil.cnf in /home/runner/texlive/texmf-dist running fmtutil-sys --byfmt mptopdf --no-error-if-no-engine=luametatex,luajithbtex,luajittex,mfluajit --status-file=/tmp/yCFX9JaktR/XWxxYEwl7V ... OK: mptopdf.fmt/pdftex tlmgr: package log updated: $TEXDIR/texmf-var/web2c/tlmgr.log tlmgr: command log updated: $TEXDIR/texmf-var/web2c/tlmgr-commands.log I tried \setmainfont[Ligatures=TeX,]{Gentium-Regular.ttf} as mentioned in another post. but did not work. I spent several days already trying to solve this problem but I miserably failed. Any
- Multiple splits in Tikz rectangle with distinct linesby iago on April 29, 2026 at 9:24 am
My goal is to get a rectangle like the one below, but with text in the nested rectangles. Line types could be for example the following: I saw tikz: Multiple splits of rectangle, but it does not answer the question on the line types. Beyond that, I am a beginner using Tikz, and I'd like the answer explained, since the linked answer is complex to understand. Thanks!
- Minipage figures are not aligned horizontallyby Tarran M on April 29, 2026 at 9:12 am
Not sure what is wrong with my minipage figures, this is the same kind of layout that I have used in the past with no problems, but for some reason now it is not working. I am trying to have all four figures have the same width, with all the captions also aligned on the same line. The following code \documentclass[12pt, a4paper, twoside, openright]{article} \usepackage{graphicx} \usepackage{float} \usepackage{caption} \begin{document} \begin{figure}[h!] \centering \begin{minipage}{0.25\textwidth} \centering \includegraphics[width=0.9\textwidth]{images/quartier_1.png} \caption{Quartier 1}\label{fig:q1} \end{minipage}\hfill \begin{minipage}{0.25\textwidth} \centering \includegraphics[width=0.9\textwidth]{images/quartier_2.png} \caption{Quartier 2}\label{fig:q2} \end{minipage} \hfill \begin{minipage}{0.25\textwidth} \centering \includegraphics[width=0.9\textwidth]{images/quartier_3.png} \caption{Quartier 3}\label{fig:q3} \end{minipage} \begin{minipage}{0.25\textwidth} \centering \includegraphics[width=0.9\textwidth]{images/quartier_4.png} \caption{Quartier 4}\label{fig:q4} \end{minipage} \end{figure} \end{document} returns the following result:
- Cref (or ref) is referring to wrong theorem numbersby Aditya Thorat on April 29, 2026 at 8:51 am
Some of my theorem numbers are changed by Cref for example, when I click theorem 2.6, it goes to theorem 1.6, Lemma 10.1 goes to Lemma 6.1 etc. Here is my packages list: \documentclass[11 pt]{amsart} \makeatletter \def\@seccntformat#1{\csname the#1\endcsname.\space} \makeatother \usepackage[foot]{amsaddr} \ \usepackage{float} \usepackage[normalem]{ulem}%for strikethrough \usepackage{amsmath} %for \text % for \tags and \eqref macros \usepackage{amssymb} \usepackage{amsthm} \usepackage{mathtools} \usepackage{mathrsfs} \usepackage{mdframed} \usepackage{lipsum} \usepackage{mathtools} \usepackage{color} \usepackage{setspace} \doublespacing \usepackage[hidelinks]{hyperref} \hypersetup{linktocpage, colorlinks=true, linkcolor= red } \usepackage{cleveref} \usepackage[margin=1in]{geometry} \usepackage{thmtools, thm-restate} \declaretheorem[numberwithin=section]{theorem} \newtheorem{lemma}[theorem]{Lemma} \newtheorem{cor}[theorem]{Corollary} \newtheorem{question}[theorem]{Question} \newtheorem{definition}[theorem]{Definition} \newtheorem{example}[theorem]{Example} \newtheorem{conjecture}[theorem]{Conjecture} \newtheorem{notation}[theorem]{Notation} \newtheorem{proposition}[theorem]{Proposition} \newtheorem{corollary}[theorem]{Corollary} \patchcmd{\section}{\scshape}{\bfseries\large}{}{} \patchcmd{\subsubsection}{\itshape}{}{}{}
- Unexpected spacing with negative coordinates in a command for projective coordinates using `expl3`by Antonio on April 29, 2026 at 6:57 am
I have an issue with the following code, kindly provided by egreg some time ago answer by egreg. It worked well, but I recently noticed an unwanted behavior. I am not sufficiently familiar with expl3 to fix it myself, nor do I fully understand how the code works. \ExplSyntaxOn \NewDocumentCommand{\pc}{m} % projective coordinates { \seq_set_split:NVn \l_tmpa_seq \c_colon_str { #1 } ( \seq_use:Nn \l_tmpa_seq { \mspace{1\medmuskip}{:}\mspace{1\medmuskip} } ) } \ExplSyntaxOff \documentclass{article} \usepackage{amsmath} \begin{document} \[ \begin{aligned} &(a:b:c) & & (1:-1:2) & &\qquad\verb|standard|\\ &\pc{a:b:c} & & \pc{1:-1:3} & &\qquad\verb|with \pc command|\\ &(a:-b:c) & & (1:-2:3) & &\qquad\verb|standard|\\ &\pc{a:-b:c}& & \pc{1:-2:3} & &\qquad\verb|with \pc command| \end{aligned} \] \[ \pc{a,b,c,d}\quad \pc{a;b;c;d,e,f:g:h:i,l} \] \end{document} Here is the output of the minimal working example: The actual issue appears when a coordinate other than the first is negative (for example \pc{a:-b:c} or \pc{1:-2:3}), where the spacing/output differs from the standard notation. As an aside, I also do not understand why commands such as \pc{a,b,c} or \pc{a;b;c:d} produce the output they do. Could someone explain what is happening here, and how to modify the macro so that it behaves correctly in all cases?
- Why \nobreak is not needed before space?by Igor Liferenko on April 29, 2026 at 3:12 am
This example \hfuzz=10000pt \hsize=0pt \noindent\hskip0pt thirteen --- dimensional \bye is equivalent to \hfuzz=10000pt \hsize=0pt \noindent\hskip0pt thirteen\hskip0pt---\nobreak\hskip0pt dimensional \bye Why in the first case space is equivalent to \hskip0pt and in second case --- to \nobreak\hskip0pt (i.e., why in the second case \nobreak is not needed before space) ? BTW, in the following example if we delete \nobreak before second \space, the breaking decision after --- is changed. \hfuzz=10000pt \hsize=7.29cm \noindent Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Thirteen\nobreak\space---\nobreak\space dimensional. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. \bye
- How to add a translucent background picture on a title page, behind titles?by Cham on April 28, 2026 at 10:08 pm
I would like to add a very large picture on a title page, covering the whole page with a large offset (picture pasted to the upper-left side of the page), blended on the page background (below the title, author's name and other text elements), with some transparency effect, and background blending effect. How should we achieve this? The picture is supposed to be partly shown on the page, about half of it showing on the upper-left side, like an "intrusion" on the page (sorry for the bad english description. I hope you get the picture). Here's a MWE to be modified, showing a title page prototype: \documentclass[11pt,twoside]{book} \usepackage[T1]{fontenc} \usepackage[tt=false]{libertinus} \usepackage[french]{babel} \usepackage[stretch=50]{microtype} \usepackage[letterpaper,left=1.25in,right=1in,top=0.5in,bottom=0.5in,includeheadfoot,headheight=15pt]{geometry} \usepackage{titlesec} \usepackage{graphicx} \usepackage[dvipsnames]{xcolor} \usepackage{float} \usepackage{fancyhdr} \usepackage[titles]{tocloft} \usepackage{shadowtext} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \frontmatter % Title Page : \begin{titlepage} \definecolor{lightbrown}{RGB}{177, 149, 93} \definecolor{darkbrown1}{RGB}{58, 41, 26} \definecolor{darkbrown2}{RGB}{50, 30, 0} % Frame : \begin{tikzpicture}[remember picture, overlay] \draw[line width = 1in,color = white] ($(current page.north west) + (0.25in,0.25in)$) rectangle ($(current page.south east) + (0.25in,-0.25in)$); \draw[line width = 0.25pt,color = black] ($(current page.north west) + (0.75in,-0.25in)$) rectangle ($(current page.south east) + (-0.25in,0.25in)$); %\draw[line width = 1pt,color = darkbrown1] ($(current page.north west) + (1in,-0.5in)$) rectangle ($(current page.south east) + (-0.5in,0.5in)$); \end{tikzpicture} \shadowoffsetx{2.5pt} \shadowoffsety{3.5pt} \shadowcolor{gray!80} \definecolor{pagetitre}{RGB}{150,120,100} \pagecolor{pagetitre} \centering \vspace*{\baselineskip} \vfill {\textcolor{black}{\fontsize{26}{0}\selectfont\sffamily\textbf{\shadowtext{Some Nice Title Here}}}} \\[2.5\baselineskip] {\textcolor{black}{\huge\sffamily\scshape Someone}} \vfill \vfill \includegraphics[width=11cm]{example-grid-100x100pt} \vfill {\textcolor{black}{\Large\selectfont\sffamily\scshape Some copyright notice}} \end{titlepage} \pagecolor{white} Blabla \end{document} So how can I add a very large picture blended with the page background colour, with some transparency effect, and a large up-left offset? The large picture should fit inside the frame defined with the tikzpicture environment, and stay below all text on the title page.
- How can I include an image in a header in LaTeX?by Javier Cabezas Zapata on April 28, 2026 at 6:08 pm
I am trying to include an image in the center part of the header (between the course name and semester, and the professor's name. I have tried but it keeps moving, or hiding text behind. Here's my code: \documentclass[12pt]{article} \usepackage{color,fancyhdr,ifthen,amssymb,amsfonts,amsmath} \usepackage{ragged2e} \usepackage[table]{xcolor} \usepackage{makecell} \usepackage{inputenc} \pagestyle{fancy} \setlength{\topmargin}{-.5in} \setlength{\textheight}{9in} \setlength{\oddsidemargin}{0in} \setlength{\evensidemargin}{0in} \setlength{\textwidth}{6.5in} \setlength{\headwidth}{\textwidth} \parindent=0em \newcommand{\forceindent}{\leavevmode{\parindent=2em\indent}} \newcounter{questionNumber} \setcounter{questionNumber}{1} \newcommand{\headandfoot}[3]{\lhead{#1}\chead{ \includegraphics[width=2cm,height=\n1]{VU_CLAS.png}} }\rhead{Dr. Name{\\{\hspace{}}}{}} \lfoot{}\cfoot{}\rfoot{\thepage} \linespread{1.75} \headandfoot{SPA 1122 -- Spring 26 \\ Examen Final}{}{} \setlength{\headsep}{0.5in} \begin{document} \begin{FlushRight} \vspace{1em} Nombre: \underline{\hspace{8cm}} \\ \vspace{0.2cm} Nota: \underline{\hspace{2cm}} / 100 \end{FlushRight} \end{document}
- pstricks:circuit diagrams, using A4 paper landscape, how do I get a nice grid?by tangent on April 28, 2026 at 10:57 am
This is my current effort: \documentclass{article} \usepackage{pstricks} \usepackage{graphicx} \begin{document} \rotatebox{90}{% \begin{pspicture}(5,4) \psgrid \end{pspicture} } \end{document} How do I persuade gv (and my printer), to present it in landscape? Of course I have to play with the actual numbers. Eventually something like conventional graph paper on it's side.
- New glossary style working with glossaries but not with glossaries-extraby Denis Bitouzé on April 28, 2026 at 10:43 am
The following MCE: \documentclass{article} \usepackage[xindy,symbols]{glossaries} % \usepackage[xindy,symbols]{glossaries-extra} \makeglossaries \newglossarystyle{yadsymbolstyle}{% % put the glossary in the itemize environment: \renewenvironment{theglossary}% {\begin{description}}{\end{description}}% % have nothing after \begin{theglossary}: \renewcommand*{\glossaryheader}{}% % have nothing between glossary groups: \renewcommand*{\glsgroupheading}[1]{}% \renewcommand*{\glsgroupskip}{}% % set how each entry should appear: \renewcommand*{\glossentry}[2]{% \item[\textmd{\glossentrysymbol{##1}}] \glstarget{##1}{\glossentryname{##1}}% the entry name \ifthenelse{\equal{\glossentrydesc{##1}}{}}{% }{% \space (\glossentrydesc{##1})% the description }% \hfill ##2% the number list in square brackets }% % set how sub-entries appear: \renewcommand*{\subglossentry}[3]{% \glossentry{##2}{##3}}% }% \newglossaryentry{alpha}{% type=symbols,% symbol={\ensuremath{\alpha}},% name={alpha},% description={first letter in the Greek alphabet},% }% \begin{document} \gls{alpha} \printglossary[ type=symbols, style=yadsymbolstyle ] \end{document} compiled with pdflatex + makeglossaries + pdflatex, works like charm. But, if \usepackage[xindy,symbols]{glossaries} is replaced by \usepackage[xindy,symbols]{glossaries-extra}, the second pdflatex compilation fails with the following error: ./test-glossaries.sls ! Missing \endcsname inserted. <to be read again> \def l.28 \glsXpageXglsnumberformat{}{1}}} % ? though the test-glossaries.sls files are identical in both cases. Do you understand what's going on?
- biblatex: relatedtype-commandby Engelbert Buxbaum on April 28, 2026 at 7:54 am
in my bibliographies I often have references to older literature in various languages, for which English translations exist, like: @BOOK{Pto-00, AUTHOR = {{{\foreignlanguage{greek}{Κλαύδιος Πτολεμαῖος}} [Klaúdios Ptolemaíos]}}, sortname = {Ptolemaios}, shortauthor = {Ptolemaíos}, TITLE = {{{\foreignlanguage{greek}{μέγιστη σύνταξις}} [megíste sýntaxis] [\textnormal{{\foreignlanguage{arabic}{المجسطي}}} al-maǧisṭī] [Almagest] }}, sorttitle = {Almagest}, YEAR = {2nd Century AD}, address = {Alexandria (EG)}, related = {Pto-84}, relatedtype = {translatedbyas}, langid = {greek}, } @BOOK{Pto-84, AUTHOR = {{{\foreignlanguage{greek}{Κλαύδιος Πτολεμαῖος}} [Klaúdios Ptolemaíos]}}, TITLE = {Ptolemy's Almagest}, translator = {Toomer, G.J.}, editor = {Toomer, G.J.}, YEAR = {1984}, PUBLISHER = {Duckworth}, address = {London (UK)}, url = {https://classicalliberalarts.com/resources/PTOLEMY_ALMAGEST_ENGLISH.pdf}, } Unfortunately, I could not find in the bibLaTeX manual a list of the relatedtype-options (editedby, editedbyas, translatedby...) and their respective use. It would help me to make more effective use of this facility. Does anybody know of such a thing?
- Correct way to insert lots of glyphs for a custom writing system into LaTeXby IA7 on April 28, 2026 at 7:25 am
I am currently designing a conlang that requires a custom writing system with many glyphs. I am unsure what the best way to insert these glyphs into a LaTeX document is. My current approach is to use METAFONT, but I will likely use more than 256 glyphs. If possible, I would like to be able to type the characters through name (e.g. hem- kron-) but METAFONT does not support 3+ character ligatures. Are there any other ways that would be better for my use case? TikZ or METAPOST, for instance? (Because of the way the writing system for the conlang works, I also need the system to work in math mode and be able to set the kerning between characters to 0 - i.e. no inter-character space) Also, if it's relevant, I wasn't planning to type the text out by hand - I was going to have a lua script to put the character names in and output the actual characters.
- Is it possible to do this by setting a custom command for a specific cell, for example `cell{3}{1}={cmd=\mycustomcommand}`?by Vincent on April 28, 2026 at 7:20 am
How to use cmd=\mycustomcommand instead of \\ to break lines from tabularray package. The code: \documentclass{article} \usepackage{tabularray} \begin{document} \begin{tblr}{ hlines,vlines, colspec={*{4}{Q[c]}}, } C1&C2&C3&C4\\ {C1\\R2}&C2R2&C3R2&C4R2 \end{tblr} \end{document} The produce: I want to use a custom command to set vertically displayed characters, such as 1 or 2 characters per line. This number should be a parameter.
- How to tweak the exact positon in the normal direction of the path by `anchor`?by Explorer on April 28, 2026 at 6:28 am
As the follow-up of my previous question, the code below comes from cfr's solution: % Source - https://tex.stackexchange.com/a/762315 % Posted by cfr % Retrieved 2026-04-28, License - CC BY-SA 4.0 \documentclass[tikz,border=5pt]{standalone} \usetikzlibrary{arrows.meta} \makeatletter \newcommand\dualharpoon{} \newcommand\dualharpoon@aux{} \newcommand\dualharpoon@noaux{} \protected\def\dualharpoon{% \@ifnextchar[\dualharpoon@aux\dualharpoon@noaux } \protected\def\dualharpoon@noaux{% \dualharpoon@aux[]% } \long\protected\def\dualharpoon@aux[#1]#2#3#4#5{% \path (#4.center); \pgfgetlastxy{\temp@ax}{\temp@ay} \path (#5.center); \pgfgetlastxy{\temp@bx}{\temp@by} \pgfmathsetmacro\temp@angle{atan2(\temp@by-\temp@ay,\temp@bx-\temp@ax)} \draw[-foo,mystyle] (#4.{\temp@angle - 10}) -- % node[ % draw=blue, % % anchor={90+\temp@angle}, % sloped,inner sep=0pt,#1 % ] {#2} node[ draw, % draw=red, anchor={90+\temp@angle},%<- sloped,inner sep=0pt,#1 ] {#2} (#5.{190 + \temp@angle}); %%%%%%%%%%%%%%%%%%%% \draw[foo-,mystyle] (#4.{\temp@angle + 10}) -- node[ draw, anchor={270+\temp@angle},%<- sloped,inner sep=0pt,#1 ] {#3} (#5.{170 + \temp@angle}); } \makeatother \begin{document} \begin{tikzpicture}[ foo/.tip={Stealth[harpoon,swap]},scale=1.5, mystyle/.style={thick, shorten >=2pt,shorten <=2pt}, ] \foreach \i in {0,20,...,340}{ \node[draw,circle,fill=teal] (In-\i) at (\i:3) {}; \node[draw,circle,fill=magenta] (Out-\i) at (\i:5) {}; \dualharpoon[scale=.8]{$\Delta$}{$\nabla$}{In-\i}{Out-\i} } \end{tikzpicture} \end{document} And I tweaked some label arguments, but I found that the label position is not exactly what I want with anchor={90+\temp@angle}, I want every angles gives the alignment with the normal direction: To show the anchor's behavior more clearly: % Source - https://tex.stackexchange.com/a/762315 % Posted by cfr % Retrieved 2026-04-28, License - CC BY-SA 4.0 \documentclass[tikz,border=5pt]{standalone} \usetikzlibrary{arrows.meta} \makeatletter \newcommand\dualharpoon{} \newcommand\dualharpoon@aux{} \newcommand\dualharpoon@noaux{} \protected\def\dualharpoon{% \@ifnextchar[\dualharpoon@aux\dualharpoon@noaux } \protected\def\dualharpoon@noaux{% \dualharpoon@aux[]% } \long\protected\def\dualharpoon@aux[#1]#2#3#4#5{% \path (#4.center); \pgfgetlastxy{\temp@ax}{\temp@ay} \path (#5.center); \pgfgetlastxy{\temp@bx}{\temp@by} \pgfmathsetmacro\temp@angle{atan2(\temp@by-\temp@ay,\temp@bx-\temp@ax)} \draw[-foo,mystyle] (#4.{\temp@angle - 10}) -- node[ draw=blue, % anchor={90+\temp@angle}, sloped,inner sep=0pt,#1 ] {#2} node[ draw=red, anchor={90+\temp@angle},%<- sloped,inner sep=0pt,#1 ] {#2} (#5.{190 + \temp@angle}); %%%%%%%%%%%%%%%%%%%% % \draw[foo-,mystyle] (#4.{\temp@angle + 10}) -- node[ % draw, % anchor={270+\temp@angle},%<- % sloped,inner sep=0pt,#1 % ] {#3} (#5.{170 + \temp@angle}); } \makeatother \begin{document} \begin{tikzpicture}[ foo/.tip={Stealth[harpoon,swap]},scale=1.5, mystyle/.style={thick, shorten >=2pt,shorten <=2pt}, ] \foreach \i in {0,20,...,340}{ \node[draw,circle,fill=teal] (In-\i) at (\i:3) {}; \node[draw,circle,fill=magenta] (Out-\i) at (\i:5) {}; \dualharpoon[scale=.8]{$\Delta$}{$\nabla$}{In-\i}{Out-\i} } \end{tikzpicture} \end{document} It also reminded me of Jasper Habicht's another solution, but..., I found it not quite easy to decide the position of the midpoint of path from A to B... Any suggestions on this?
- How to display content vertically in a merged cell in the tabularry package?by Vincent on April 28, 2026 at 3:53 am
The code: \documentclass{ctexart} \usepackage{tabularray} \begin{document} \begin{tblr}{ colspec={*{3}{Q[c]}X[l]}, hlines, vlines, cell{2}{1}={r=2}{c}, cell{4}{1}={r=3}{c}, } 班级&姓名&特长\\ 高三(1)班&陈墨&程序设计(信息学奥林匹克竞赛省级一等奖)、围棋(业余五段)\\ &赵雨萱&篮球(校队主力控卫)、素描\\ \parbox{1em}{高二(3)班}&林清音&小提琴(十级)、英文演讲(市级比赛冠军)\\ &周逸飞&数学建模、长跑(校运会1500米纪录保持者)\\ &王启明&机器人设计与编程(全国青少年科技创新大赛二等奖)\\ 高一(2)班&苏小曼&书法(软笔楷书)、播音主持、视频剪辑\\ \end{tblr} \end{document} The produce:
- How to make sidenote enviroment in tcolorbox proof enviroment with kaobook class [closed]by 조문수 on April 27, 2026 at 11:31 pm
How to make sidenote enviroment in tcolorbox proof enviroment with kaobook class \tcolorboxenvironment{proof}{% `proof' from `amsthm' blanker,breakable,left=5mm, before skip=10pt,after skip=10pt, borderline west={1mm}{0pt}{red} }
- Modern CV Skill-matrix items uniform vertical height and #Legend-itemsby mathuser1234 on April 27, 2026 at 8:04 pm
in the Latex-Code attached, I want to: adjust the vertical height of the items in the skill matrix so that the text starts on the same height as the skill-boxes. Reduce the number of Legend items to three, in particular to "basic knowledge", "skilled" and "project exp.". Edit: Regarding 2):How can I adjust the number of skill-levels to three? Thanks in advance. \documentclass[a4paper, 11pt, color, final]{moderncv} \usepackage[scaled=.92]{helvet} \renewcommand{\familydefault}{\sfdefault} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} %moderncv themes \definecolor{darkgreen}{rgb}{0.290196, 0.394314, 0.384314} \definecolor{darkgrey}{rgb}{0.45,0.45,0.45} \colorlet{color1}{darkgreen} \colorlet{color2}{darkgrey} \moderncvstyle{classic} %character encoding \usepackage[utf8]{inputenc} %adjust page margins \usepackage[scale = 0.8]{geometry} \recomputelengths \usepackage{graphicx} \graphicspath{ {images/} } %Personal Data \firstname{John} \familyname{Doe} \born{\normalfont 01. 01. 2000} \title{\textcolor{black}{Curriculum Vitae}} \email{\normalfont abc.def@hij.com} \address{\normalfont abc street 1}{\normalfont 12345 city} \nopagenumbers{} \makeatletter \renewcommand*{\makecvhead}{% % recompute lengths (in case we are switching from letter to resume, or vice versa) \recomputecvlengths% % optional detailed information (pre-rendering) \@initializebox{\makecvheaddetailsbox}% \if@details% \def\phonesdetails{}% \collectionloop{phones}{% the key holds the phone type (=symbol command prefix), the item holds the number \protected@edef\phonesdetails{\phonesdetails\protect\makenewline\csname\collectionloopkey phonesymbol\endcsname\collectionloopitem}}% \def\socialsdetails{}% \collectionloop{socials}{% the key holds the social type (=symbol command prefix), the item holds the link \protected@edef\socialsdetails{\socialsdetails\protect\makenewline\csname\collectionloopkey socialsymbol\endcsname\collectionloopitem}}% \savebox{\makecvheaddetailsbox}{% \addressfont\color{color0}% \if@left\begin{tabular}[b]{@{}l@{}}\fi% \if@right\begin{tabular}[b]{@{}l@{}}\fi% \ifthenelse{\isundefined{\@addressstreet}}{}{\makenewline\addresssymbol\@addressstreet% \ifthenelse{\equal{\@addresscity}{}}{}{\makenewline\@addresscity}% if \addresstreet is defined, \addresscity and addresscountry will always be defined but could be empty \ifthenelse{\equal{\@addresscountry}{}}{}{\makenewline\@addresscountry}}% \phonesdetails% needs to be pre-rendered as loops and tabulars seem to conflict \ifthenelse{\isundefined{\@email}}{}{\makenewline\emailsymbol{\@email}}% \ifthenelse{\isundefined{\@born}}{}{\makenewline\bornsymbol{\@born}}% \socialsdetails% needs to be pre-rendered as loops and tabulars seem to conflict \ifthenelse{\isundefined{\@extrainfo}}{}{\makenewline\@extrainfo}% \end{tabular} }\fi% % optional photo (pre-rendering) \@initializebox{\makecvheadpicturebox}% \savebox{\makecvheadpicturebox}{% \ifthenelse{\isundefined{\@photo}}% {}% {% \if@left% \hspace*{\separatorcolumnwidth}\fi% \color{color0}% \setlength{\fboxrule}{\@photoframewidth}% \ifdim\@photoframewidth=0pt% \setlength{\fboxsep}{0pt}\fi% \framebox{\includegraphics[width=\@photowidth]{\@photo}}}% \if@right% \hspace*{\separatorcolumnwidth}\fi}% % name and title (pre-rendering) \@initializelength{\makecvheaddetailswidth}\settowidth{\makecvheaddetailswidth}{\usebox{\makecvheaddetailsbox}}% \@initializelength{\makecvheadpicturewidth}\settowidth{\makecvheadpicturewidth}{\usebox{\makecvheadpicturebox}}% \ifthenelse{\lengthtest{\makecvheadnamewidth=0pt}}% check for dummy value (equivalent to \ifdim\makecvheadnamewidth=0pt) {\setlength{\makecvheadnamewidth}{\textwidth-\makecvheaddetailswidth-\makecvheadpicturewidth}}% {}% \@initializebox{\makecvheadnamebox}% \savebox{\makecvheadnamebox}{% \begin{minipage}[b]{\makecvheadnamewidth}% \if@left\raggedright\fi% \if@right\raggedleft\fi% \namestyle{\@firstname\ \@lastname}% \ifthenelse{\equal{\@title}{}}{}{\\[8.4em]\titlestyle{\@title}}% \end{minipage}}% % rendering \if@left% \usebox{\makecvheadnamebox}% \hfill% \usebox{\makecvheadpicturebox}\\[-3cm]% \usebox{\makecvheaddetailsbox}\fi% \llap is used to suppress the width of the box, allowing overlap if the value of makecvheadnamewidth is forced \if@right% \usebox{\makecvheadpicturebox}% \rlap{\usebox{\makecvheaddetailsbox}}% \llap is used to suppress the width of the box, allowing overlap if the value of makecvheadnamewidth is forced \hfill% \usebox{\makecvheadnamebox}\fi% \\[5em]% % optional quote \ifthenelse{\isundefined{\@quote}}% {}% {{\centering\begin{minipage}{\quotewidth}\centering\quotestyle{\@quote}\end{minipage}\\[1.5em]}}% \par}% to avoid weird spacing bug at the first section if no blank line is left after \makecvhead % --- Benötigte Pakete --- \usepackage{calc} \usepackage{enumitem} \begin{document} %CURRICULUM VITAE \maketitle \section{Skills} \cvitemwithcomment[0.5em]{abc}{\cvskill{1}}{\normalfont \mdseries \begin{itemize}[leftmargin=1em, nosep, label=\textbullet] \item Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text TextText Text Text Text Text Text Text TextText Text Text TextText Text Text TextText Text Text TextText Text Text TextText Text Text TextText Text Text TextText Text Text Text \item Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text TextText Text Text Text Text Text Text TextText Text Text TextText Text Text TextText Text Text TextText Text Text TextText Text Text TextText Text Text TextText Text Text Text \item Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text TextText Text Text Text Text Text Text TextText Text Text TextText Text Text TextText Text Text TextText Text Text TextText Text Text TextText Text Text TextText Text Text Text \end{itemize}} \cvitemwithcomment[0.5em]{abc}{\cvskill{1}}{\parbox{\linewidth}{\normalfont \mdseries Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text TextText Text Text Text Text Text Text TextText Text Text TextText Text Text TextText Text Text TextText Text Text TextText Text Text TextText Text Text TextText Text Text Text}} \cvitemwithcomment[0.5em]{abc}{\cvskill{3}}{\parbox{\linewidth}{\normalfont \mdseries text abcaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaa aaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa. }} \vspace{0.1cm} \cvskillplainlegend[0.2em][basic knowledge][skilled][project-exp.][in-depth knowledge][Expert]{Legende} \closesection{} \begin{flushleft} city, \today \end{flushleft} \end{document}
- tcolorbox across multiple pages - the title is not fully the sameby Doc on April 27, 2026 at 7:15 pm
I have had some assistance with tcolorbox before, and I am trying to get a box (when it naturally follows from one page to the next), with the same heading but, in the MWE below, the formatting of the header changes. \documentclass[]{report} \newcommand\rub[1]{% {\noindent\normalsize\itshape\textcolor{red}{#1}\normalsize}%} \usepackage[skins,breakable]{tcolorbox} % changed <<<<<<<<<<<< \tcbset{% changed <<<<<<<<<<<<mytitle/.style={% enhanced, overlay={ \node [rotate=90, anchor=south, fill=tcbcolframe!25, text width=\tcbtextheight, align=center] at (frame.west) {\itshape#1}; }, }, breakable } \newtcolorbox{mybox}[2][]{% mytitle={#2}, toprule=0pt, bottomrule=0pt, rightrule=0pt, sharp corners, valign=center,#1} \title{Test} \author{} \begin{document} \maketitle \chapter{Weekday Evening Prayers} \section*{Introductory Prayers} \rub{Having awakened from sleep, before any other act, rise from your bed without laziness and, having gathered your thoughts, stand before the All-seeing God and make the Sign of the Cross, saying:}\\ In the name of the Father, and the Son, and the Holy Spirit. Amen.\\ \rub{Afterwards, stand in silence for a few moments until all your senses are calmed and your thoughts have laid aside all earthly cares. At that point, begin with the Prayer of the Publican without haste and with heartfelt attentiveness.}\\ O God, be merciful to me, a sinner. \rub{(thrice)}\\ \rub{Then, we continue:}\\ O Lord Jesus Christ, Son of God, for the sake of the prayers of Thy most pure Mother and all the saints, have mercy on us. Amen.\\ Glory to Thee, our God, glory to Thee.\\ O heavenly King, the Comforter, the Spirit of truth, who art everywhere present and fillest all things, Treasury of blessings and Giver of life: Come and abide in us, and cleanse us from every impurity, and save our souls, O Good One.\\ \begin{mybox}[colframe=yellow,breakable]{Paschaltide} \rub{From Bright Monday through the Leavetaking of Pascha, after the initial ``Amen", we immediately say:}\\ Christ is risen from the dead, trampling down death by death, and upon those in the tombs bestowing life. \rub{(thrice)}\\ \rub{Then continue with ``Holy God" $\ldots$ (below).}\\ \rub{Also, the prayer ``O Heavenly King $\ldots$" is not read until Pentecost. From the Apodosis (Leavetaking) of Pascha until the Sunday of Pentecost, we begin with ``Holy God $\ldots$"} \end{mybox} \end{document}
- Alignment of vscodeicons and vectorlogos icons with respect to surrounding textby Sebastiano on April 27, 2026 at 6:47 pm
I am using the vscodeicons and vectorlogos packages to include small icons in my document. Consider this MWE: \documentclass{article} \usepackage{vscodeicons,vectorlogos} \begin{document} Inline \vscodeicon[filetype]{wolfram} version Geogebra \vectorlogo[icon]{geogebra} \end{document} To my eyes, the icons appear slightly shifted downwards with respect to the surrounding text. Are they already correctly aligned in the packages, or would it be better to tweak them (e.g., with \raisebox or package options such as height=auto/dstrut=false) so that they sit exactly on the baseline like the surrounding text? If some adjustment is recommended, what would be a robust way to align them in inline text without breaking the line spacing?
- How to format the spacing of the captions of figures and tables properly?by Simon on April 27, 2026 at 5:51 pm
I am asked to format the spacing of the captions of figures and tables as follows: captions of figures above: 6 pt below: 18 pt captions of tables above: 18 pt below: 9 pt I tried implementing this as shown in the following MWE, yet, the result seems odd, especially the gap below the caption of the figure and below the table, respectively, and the proceeding text. Why is that or, alternatively, how can this be formatted properly? \LoadClass[a4paper,12pt,parskip=full-]{scrreprt} \RequirePackage[font=footnotesize,labelfont=bf,singlelinecheck=false]{caption} \captionsetup[figure]{aboveskip=6pt,belowskip=18pt} \captionsetup[table]{belowskip=18pt,aboveskip=9pt} \RequirePackage{float} \begin{document} This text refers to Figure \ref{figure}: \begin{figure}[H] \caption{Caption of Figure} \label{figure} \end{figure} This text refers to Table \ref{table}: \begin{table}[H] \caption{Caption of Table} \label{table} \begin{tabular}{ |c| } \hline Table\\ \hline \end{tabular} \end{table} Text. \end{document}
- How to add two-sided harpoon arrows with proper label position elegantly?by Explorer on April 27, 2026 at 5:14 pm
Learning from the link here and here, I have the following code: \documentclass[tikz,border=5pt]{standalone} \usetikzlibrary{arrows.meta} \begin{document} \begin{tikzpicture}[ foo/.tip={Stealth[harpoon,swap]}, mystyle/.style={thick, shorten >=2pt,shorten <=2pt}, ] \node[draw,circle,fill=teal] (A) at (0,1) {A}; \node[draw,circle,fill=magenta] (B) at (0,-1) {B}; \node[draw,circle,fill=cyan] (C) at (2.5,.5) {C}; \draw[-foo,mystyle,transform canvas={xshift=-0.3ex}] (A) -- node[left] {$\Delta$} (B); \draw[foo-,mystyle,transform canvas={xshift=+0.3ex}] (A) -- node[right] {$\nabla$} (B); % \draw[dualharpoon={$\Delta$}{$\nabla$}] (A) -- (B); % ? \draw[-foo,mystyle,transform canvas={yshift=-0.3ex}] (B) -- node[below right=-3pt] {$f(x)$} (C); \draw[foo-,mystyle,transform canvas={yshift=+0.3ex}] (B) -- node[above left=-3pt] {$g(x)$} (C); % \draw[dualharpoon={$f(x)$}{$g(x)$}] (B) -- (C); % ? \end{tikzpicture} \end{document} I want more smartly syntax like: \draw[dualharpoon={$\Delta$}{$\nabla$}] (A) -- (B); \draw[dualharpoon={$f(x)$}{$g(x)$}] (B) -- (C); which control exactly how much to xshift/yshift moved towards in the direction perpendicular to the connection between the two nodes, in addition, I also don't want to decide the node's position by above left=-3pt manually. Any suggestions on how to support such two-sided harpoon arrow with label? Edited after cfr's answer(first edition): % Source - https://tex.stackexchange.com/a/762315 % Posted by cfr % Retrieved 2026-04-28, License - CC BY-SA 4.0 \documentclass[tikz,border=5pt]{standalone} \usetikzlibrary{arrows.meta} \makeatletter \newcommand\dualharpoon{} \newcommand\dualharpoon@aux{} \newcommand\dualharpoon@noaux{} \protected\def\dualharpoon{% \@ifnextchar[\dualharpoon@aux\dualharpoon@noaux } \protected\def\dualharpoon@noaux{% \dualharpoon@aux[]% } \long\protected\def\dualharpoon@aux[#1]#2#3#4#5{% \path (#4.center); \pgfgetlastxy{\temp@ax}{\temp@ay} \path (#5.center); \pgfgetlastxy{\temp@bx}{\temp@by} \edef\temp@angle{\fpeval{(atan((\temp@by-\temp@ay)/(\temp@bx-\temp@ax)))*(180/pi)}} \draw[-foo,mystyle] (#4.{\temp@angle - 5}) -- coordinate (temp@1) (#5.{185 + \temp@angle}); \node[anchor={90+\temp@angle}] at (temp@1) {#2} ; \draw[foo-,mystyle] (#4.{\temp@angle + 5}) -- coordinate (temp@2) (#5.{175 + \temp@angle}); \node[anchor={270+\temp@angle}] at (temp@2) {#3}; } \makeatother \begin{document} \begin{tikzpicture}[ foo/.tip={Stealth[harpoon,swap]}, mystyle/.style={thick, shorten >=2pt,shorten <=2pt}, ] \node[draw,circle,fill=teal] (A) at (0,1) {A}; \node[draw,circle,fill=magenta] (B) at (0,-1) {B}; \node[draw,circle,fill=cyan] (C) at (2.5,.5) {C}; \node[draw,circle,fill=olive] (D) at (-3,1) {D}; \dualharpoon{$\Delta$}{$\nabla$}{A}{B} \dualharpoon{$g(x)$}{$f(x)$}{B}{C} \dualharpoon{$p$}{$q$}{B}{D} \end{tikzpicture} \end{document}
- Creating hyperref links which continue working when PDF document is split into chaptersby Frisket on April 27, 2026 at 3:14 pm
I use lualatex and hyperref to create a large PDF file of documentation with extensive crossreferencing to figures, tables, sections, list items, pages, etc using hyperref and varioref. The file then gets split (by a script which writes pdftk commands) into separate PDF files for prelims, chapters, appendices, references, etc. Is there a way to rewrite the crossreferencing commands so that they will work both in the monolithic document and between the split documents? Or do I need to create both the single-file PDF and the separate PDFs using LaTeX, rather than by splitting the big one?
- biblatex-chicago: Inconsistent spacing between volumes and pages of articles?by user1362373 on April 27, 2026 at 1:57 pm
I'm using biblatex-chicago and find that the spacing between volumes and pages of articles is inconsistent. What I mean by this is that the spacing depends on whether the issue number is present. Consider this MWE: \documentclass{article} \usepackage{filecontents} \usepackage[authordate,backend=biber]{biblatex-chicago} \addbibresource{refs-mwe.bib} \begin{filecontents}{refs-mwe.bib} @article{Other2021, author={A. N. Other}, title={Some title}, journal={Nature}, volume={2}, number={3}, pages={4-5}, year={2021} } @article{Bloggs2022, author={J. Bloggs}, title={Some title}, journal={Science}, volume={3}, pages={5-6}, year={2022} } \end{filecontents} \begin{document} \textcite{Other2021,Bloggs2022} \printbibliography \end{document} which gives How do I get rid of the spaces before and after the issue number? That is, how do I get rid of the spaces before and after the "(3):" in the second reference? Note: It is possible to add a space before the pages in the first reference by adding \renewcommand{\postvolpunct}{\addcolon\addspace}, but this is not what I want.
- Raise subscript position in lualatexby Alexander Voigt on April 27, 2026 at 8:25 am
I am typesetting the following matrix equation (MWE): \documentclass[preview]{standalone} \usepackage{iftex} \ifLuaTeX \usepackage{unicode-math} \else \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath} \fi \begin{document} \[ \begin{pmatrix} \underline{v}_1^T \\ \underline{v}_3^T \\ \underline{v}_3^T \end{pmatrix} = \begin{pmatrix} v_{11} & v_{12} & v_{13} \\ v_{21} & v_{22} & v_{23} \\ v_{31} & v_{32} & v_{33} \end{pmatrix} \] \end{document} When I compile with pdflatex, the matrix elements on the l.h.s. look good to me. In particular, both the subscripts (indices) and the superscripts (T) are properly set and readable: However, when I compile with lualatex, the subscripts overlap with the succeeding line: I've also created a gif for a better comparison: My question is: How can I avoid the overlap? (My wish would be to consistently raise the subscripts. I'd like to avoid increasing the row distance, because then the rows on the l.h.s. would not properly align with the rows on the r.h.s.)
- Horizontal rule in CV europass without alternate layoutby Sebastiano on April 26, 2026 at 9:44 pm
I am working on a personalized CV-class and I have need to add a horizontal header line manually positioned, that not use TikZ and not shift horizontally or vertically text and gray box like the image below I already use a grey background with \AddToShipoutPictureBG \AddToShipoutPictureBG*{% \AtPageUpperLeft{% \raisebox{-.29\paperheight}{% \color{gray!15}\rule{\paperwidth}{.29\paperheight}% }% }% } I have tried \noindent\hrulefill or with \hskip-1em\vtop{\vskip0.5cm\hsize=2in \hrulefill} or \makebox but it does not permit me to create a rule without shift vertically/horizontally text and gray box. Here a minimal working example using another similar class. You can see that the rule \noindent\hrulefill that moves the text downwards: \documentclass[italian,a4paper]{europasscv} \usepackage[italian]{babel} \usepackage{graphicx,array,booktabs,fontawesome6,xcolor,tikz} \usepackage{eso-pic} \DeclareRobustCommand\ebseries{\fontseries{eb}\selectfont} \DeclareTextFontCommand{\texteb}{\ebseries} \ecvname{%\fontseries{b}\selectfont %\textbf{ \sffamily{\ebseries Marco Bellini } %} } \ecvaddress{\!Via delle Rose, 25 40123 Apuleia} \ecvmobile{\,(+39) } \ecvtelephone{(+39) } \begin{document} \AddToShipoutPictureBG*{% \AtPageUpperLeft{% \raisebox{-.29\paperheight}{% \color{gray!15}\rule{\paperwidth}{.29\paperheight}% }% }% } \begin{europasscv} \noindent\hrulefill \sffamily \ecvpersonalinfo{} \ecvbigitem{Posizione ricoperta}{ingegnere} \ecvsection{ingegnere} \ecvtitle{2011 – in corso}{Impresa edile Zante} \ecvitem{}{Bla bla bla} \ecvtitle{2024}{Docente a contratto} \ecvitem{}{Matematica II} \ecvitem{\ecvhighlight{Attività o settore}}{Dipartimento di Scienze Chimiche – Università degli Studi di Modena.} \end{europasscv} \end{document} What is the best way to add a line as per my instructions?
- How can we obtain a smoother sphere when cutting it with a plane and moving the cut portion?by minthao_2011 on April 26, 2026 at 11:11 am
I am using this code in luadraw to cut a sphere with a plane and move one of the cut parts to another position. Currently, the surface of the sphere is not really smooth. If I increase the number in this line local S = sphere(Origin, R, 60, 60) to a larger value, the compilation becomes slower. How can I make the sphere smoother? \documentclass[border=5pt]{standalone} \usepackage[svgnames]{xcolor} \usepackage[3d]{luadraw} \begin{document} \begin{luadraw}{name=sphere_clip3d_fixed} local R = 3 local g = graph3d:new{window={-R-2, R+1, -R-1, R}, viewdir={110, 60}, size={10, 10}} Hiddenlinestyle = "dashed" local S = sphere(Origin, R, 60, 60) local Box = parallelep(M(-5,-5,1.5), 10*vecI, 10*vecJ, 10*vecK) local S_top = clip3d(S, Box) local S_bottom = clip3d(S, Box, true) local vector = 2*vecK + 5*vecJ local S_top_shifted = shift3d(S_top, vector) local I_bottom = border(S_bottom) local I_top_shifted = border(S_top_shifted) g:Dscene3d( g:addFacet(S_bottom, {draw="ball color=orange", color="orange", backcull=true}), g:addFacet(S_top_shifted, {draw="ball color=orange", color="orange", backcull=true}), g:addPolyline(I_bottom, {color="Navy", hidden=true}), g:addPolyline(I_top_shifted, {color="Navy", hidden=true}) ) g:Show() \end{luadraw} \end{document}
- Is there a way to arbitrarily stack mathematical formatting in LaTeX? For example: 𝑨 \mathbf{\mathit{A}}, 𝘼 \mathsf{\mathbf{\mathit{A}}}by mathrm alpha on April 26, 2026 at 10:15 am
Why does the LaTeX example 𝑨 \mathbf{\mathit{A}} become italic but not bold italic font?, or 𝙂 \mathsf{\mathbf{\mathit{G}}} remain sans serif and bold italic? I'd like to use the sans serif italic/bold italic options from the \usepackage{isomath} to represent this. It must have the function of stacking LaTeX math fonts, It would be better to mix and match LaTeX math font formats randomly. For example in font format glyphs display: 𝑨 \mathbf{\mathit} and 𝕬 \mathbf{\mathfrak}/ 𝗔 \mathbf{\mathsf}please use \bm{} + \mathit/\mathfrak/\mathsf in working this command style 𝓐 \mathbf{\mathscr} or 𝓐 \mathscr{\mathbf} please use \pmb{} + \mathscr in working this command style
- why \begin{align*}..\end{align*} spacing is different inside tikz Matrix node than outside?by Nasser on April 26, 2026 at 4:33 am
I am learning how to use tikz Matrix to layout few things. Notice that inside tikz matrix node, the alignment is not the same as outside tikz using standard &= for align math environment. I had to to put align environment inside a minipage to make it work inside tikz matrix node. It will not let me just use align directly since not paragraph mode. But the issue is the spacing between left side of &= and right side is different than outside tikz. \documentclass[12pt,varwidth]{standalone} %need varwidth to use align inside standalon \usepackage{amsmath} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \fbox{\begin{minipage}{1.5in} \vspace{0pt} % Fixes top spacing issues \noindent % Ensures no paragraph indentation {\small All plots used the same initial conditions \begin{align*} x(0) &=1\\ x'(0) &=1\\ \end{align*} } \end{minipage} } \begin{tikzpicture} \matrix (m) [matrix of math nodes, nodes={anchor=center}, row sep=3.5em, column sep=2.5em, nodes in empty cells, draw] { 1& 2& \begin{minipage}{1.5in} \vspace{0pt} % Fixes top spacing issues \noindent % Ensures no paragraph indentation {\small All plots used the same initial conditions \begin{align*} x(0) &=1\\ x'(0) &=1\\ \end{align*} } \end{minipage} &4 \\ 5& 6 & 7 & 8 \\ }; \foreach \i in {1,2,3,4} \foreach \j in {1,2} \draw [help lines] (m-\j-\i.south west) rectangle (m-\j-\i.north east); \end{tikzpicture} \end{document} Compiled with lualatex gives lualatex, TL 2026
- Images plus spacer to fit exactly text widthby user1850133 on April 25, 2026 at 11:34 am
How can I fill horizontally the whole space with e.g. 2 images and a spacer in between? Here's my try using \textwidth, but it crosses the text area. \documentclass[a4paper]{article} \usepackage{graphicx} \usepackage[showframe]{geometry} \setlength\parindent{0pt} \begin{document} \includegraphics[width=.45\textwidth]{example-image-9x16} \hspace{.1\textwidth} \includegraphics[width=.45\textwidth]{example-image-9x16} \end{document}
- Is \textit now long, instead of short?by rallg on April 24, 2026 at 1:25 am
In the past, something such as \textit{this\par that} would throw an error, because the \textit command was "short" (it could not span paragraphs). But I now see (TeXlive 2026) that is is "long" (can span paragraphs). This is verified by inspecting code in file latex.ltx even though that file is not necessarily loaded. Even AI did not know that! Or did I hack something, and forgot about it?