Hot
- diagbox pops error : "Package xcolor Error: Undefined color `diagbox'."by philippe on February 13, 2026 at 11:14 pm
Here is the MWE of the code I am attempting to use: \documentclass{article} \usepackage{xcolor} \usepackage{tabularray} \UseTblrLibrary{diagbox} \definecolor{MyLightGray}{gray}{0.9} \begin{document} \begin{table}[h] \centering \begin{tblr}{ colspec={|m{3cm}|X|X|X|}, hlines, vlines, cells={c,m}, } \SetCell{bg=MyLightGray,diagbox={Expertise}{Connaissance}} & \SetCell{bg=MyLightGray} Colonne 1 & \SetCell{bg=MyLightGray} Colonne 2 & \SetCell{bg=MyLightGray} Colonne 3 \\ Aucun / Standard & 0 & 2 & 6 \\ Spécial / COTS & 0 & 2 & 6 \\ \end{tblr} \end{table} \end{document} Here is the error I am getting while compiling : Package xcolor Error: Undefined color `diagbox'. I have no clue where xcolor comes from while it comes to diagbox, I may have a typo or something somewhere, this is driving me crazy! Please feel free to ask for more information, I don't know what more I could provide.
- Multiple independent compound numbering series in `chemnum` (generalizing two-series solution)by monty01 on February 13, 2026 at 9:48 pm
I am using the chemnum package together with chemstyle to label compounds in reaction schemes. By default, chemnum only provides a single global counter (cmpdmain), so compounds are numbered like: 1, 2, 3a, 3b, 4 … However, I need multiple independent numbering series, for example: literature compounds -> 1, 2, 3… target compounds -> T1, T2… intermediates -> INT1, INT2… supplementary information -> S1, S2… So effectively I want arbitrary named numbering series: \seriesBegin{EG} \replacecmpd{a} \seriesEnd \seriesBegin{INT} \replacecmpd{b} \seriesEnd and each series should continue later in the document without resetting. What I already found This answer provides a clever workaround for two parallel numbering series by saving and restoring cmpdmain: https://tex.stackexchange.com/a/759086/433835 code \documentclass{article} \usepackage{graphicx} \usepackage{chemstyle} % Provides the 'scheme' float environment (and general chem document styling) \usepackage{chemnum} % Provides compound numbering + psfrag-like replacement via \replacecmpd / \cmpd % --- Two "parallel" compound series trick ------------------------------------ % chemnum internally uses ONE main counter: cmpdmain. % To emulate two independent series (literature vs EG), we: % 1) save the current main counter value % 2) swap in the saved EG counter state % 3) turn on the "EG" prefix % 4) after the EG block, save the updated EG state and restore the main counter \newcounter{cmpdMainSaved} % temp storage: saves the current literature/main cmpd counter \newcounter{cmpdEGstate} % persistent storage: remembers where the EG series left off \newcommand{\EGseriesBegin}{% % Save the current "main" (literature) compound counter: \setcounter{cmpdMainSaved}{\value{cmpdmain}}% % Switch cmpdmain to the last saved EG state (so EG numbering continues): \setcounter{cmpdmain}{\value{cmpdEGstate}}% % Turn on a bold "EG" prefix for printing compound labels (EG1, EG2, ...): \setchemnum{pre-label-code=\textbf{EG}}% } \newcommand{\EGseriesEnd}{% % Save the updated EG state (so the next EG block continues where we stopped): \setcounter{cmpdEGstate}{\value{cmpdmain}}% % Turn off the EG prefix (back to plain numbers): \setchemnum{pre-label-code=}% % Restore the literature/main counter exactly where it was before EG mode: \setcounter{cmpdmain}{\value{cmpdMainSaved}}% } \begin{document} % --- Literature compounds: should print as 1,2 -------------------------------- \begin{scheme}[H] \replacecmpd{lit:a.1} % Register/replace the placeholder in the graphic with compound "1a" \replacecmpd{lit:b} % Register/replace the placeholder in the graphic with compound "2" \includegraphics[width=.5\linewidth]{PhH-and-PhMe} \caption{Normal numbering} \end{scheme} % --- Your target compounds: should print as EG1, EG2 --------------------------- \EGseriesBegin % Switch into EG-series mode (prefix + separate counter state) \begin{scheme}[H] \replacecmpd{eg:a.1} % Register/replace placeholder with "EG1a" \replacecmpd{eg:b} % Register/replace placeholder with "EG2" \includegraphics[width=.5\linewidth]{PhH-and-PhMe} \caption{EG numbering} \end{scheme} \EGseriesEnd % Leave EG mode and restore literature numbering \cmpd{eg:a.1}, \cmpd{eg:b} \cmpd{lit:a.1}, \cmpd{lit:b} % --- Continue EG series: should now print as EG3, EG4 -------------------------- \EGseriesBegin \begin{scheme}[H] \replacecmpd{eg:d} % Expected: EG3 \replacecmpd{eg:e} % Expected: EG4 \includegraphics[width=.5\linewidth]{PhH-and-PhMe} \end{scheme} \EGseriesEnd \cmpd{eg:e} % --- Back to literature series: continues as 3,4 ------------------------------- \begin{scheme}[H] \replacecmpd{lit:c} % Expected: 3 \replacecmpd{lit:d} % Expected: 4 \includegraphics[width=.5\linewidth]{PhH-and-PhMe} \caption{Normal numbering} \end{scheme} \cmpd{lit:c} % --- Later EG block: continues again (no reset) -------------------------------- % NOTE: If you ever want to restart the EG series at EG1, you can reset the state: % \setcounter{cmpdEGstate}{0} \EGseriesBegin \begin{scheme}[H] \replacecmpd{eg:f} \replacecmpd{eg:g} \includegraphics[width=.5\linewidth]{PhH-and-PhMe} \end{scheme} \EGseriesEnd \end{document}
- Independent pages and subpagesby Mockingbird on February 13, 2026 at 2:15 pm
I am working on a typographical project that consists in an English translation from a foreign language text with a commentary. I would like to organise the material as follows: on the left page (i.e., on even-numbered pages) the original text on the right page (i.e., on odd-numbered pages) the English translation The two texts should run independently of each other. In other words, the original text should scroll along the left pages and the English text along the right. Moreover I would like to have the commentary at the bottom of each page and this should also run independently of the rest, following, contrarily to the two previous points, the flow of each page, without distinction of even or oddness. I would like also an horizontal line separating the commentary from the rest, although at the moment I do not care whether the line on the left page is aligned with the one on the right. What packages should I use? Are there any templates already available with similar characteristics? Suggestions from the experts? Thank you in advance for your help.
- Any better suggestions on the arrow on the arc of these kinds of contour figure with tikz?by Explorer on February 13, 2026 at 12:25 pm
This question is similar to this link, but not exactly the same focues. What I want, is something like: But I want a better looking and better syntax of the arrow: The figure above is produced by: \documentclass[tikz,border=5pt]{standalone} % https://tex.stackexchange.com/a/656167/322482 \usetikzlibrary{bending,decorations.markings,arrows.meta,calc,spath3} \usepackage{amsmath} \begin{document} \begin{tikzpicture}[ >={Kite[inset=0pt,length=.32cm,bend]}, baz/.style={spath/save=curve}, foo/.style={ draw,tips=true,->, spath/remove empty components={curve}, spath/split at keep start={curve}{#1}, spath/use=curve }, foo/.default=0.5, ] \filldraw[thick,fill=gray!40] (4,0) node[below]{$R$} arc (0:180:4) node[below]{$-R$} -- (-3,0) arc(180:0:1) -- (1,0) arc(180:0:1) -- cycle; \path[baz] (4,0) arc (0:90:4);\path[foo=.4]; \path[baz] (0,4) arc (90:180:4);\path[foo]; \path[baz] (-3,0) arc (180:0:1);\path[foo=.55]; \path[baz] (1,0) arc (180:0:1);\path[foo=.55]; \draw[-Stealth] (-5,0) -- (5,0) node[below]{$\Re$}; \draw[-Stealth] (0,0) -- (0,5) node[right]{$\Im$}; \path node[below] {$O$} (60:4) node[above=3pt] {$C_{R}$}; \end{tikzpicture} \end{document} which learning from Andrew Stacey's elegant solution (off-topic: I seemed to find some out-of-my-intuition features with spath3 and reported at here). I have two questions(actually could be regards only one) here, the best practice to typeset these kinds of contour figure: What kind of bending arrow on the arc in there cases could be more acceptable and beautiful?(maybe that is option-based, but I was still wonder how would you choose)? I don't think spath3 library is the only approach to do this, and IMHO, that is such a common requirement to add arrows on the curve, why there looks no too much tikz solution in this post? Any possible better practice to show the arrow shape with neater syntax?
- Table of Contents disappears when compiling with LaTeX Workshop in VS Codeby Anur Goradalov on February 13, 2026 at 12:12 pm
I am writing a large LaTeX book in VS Code using the LaTeX Workshop extension and LuaLaTeX. My file structure looks like this: Desktop/ └── epsilon/ ├── main.tex ├── chapter1.tex ├── chapter2.tex └── ... In main.tex I have: \documentclass[12pt,a4paper]{book} \usepackage[utf8]{inputenc} \begin{document} \tableofcontents \include{chapter1} \include{chapter2} \end{document} I configured LaTeX Workshop with a recipe to compile LuaLaTeX twice to generate the table of contents, and I disabled auto-clean: "latex-workshop.latex.recipe.default": "lualatex twice" "latex-workshop.latex.autoBuild.run": "onSave" "latex-workshop.latex.autoClean.run": "never" "latex-workshop.view.pdf.viewer": "tab" The problem: On the first compile, the table of contents appears correctly. However, on subsequent saves/compiles, the table of contents disappears from the PDF, even though the .toc file still exists in the folder. Things I tried: Changing PDF viewer from "tab" to "external". Using manual terminal compile (lualatex main.tex twice). Using latexmk -lualatex -pdf main.tex. Disabling autoBuild completely. None of these fully fixed the problem in VS Code. Interestingly, when I upload the same project to Overleaf, the table of contents always works, but for large books it sometimes times out during compilation. My questions: Why does the table of contents disappear in VS Code with LaTeX Workshop even when .toc exists? Is there a reliable workflow in VS Code / LaTeX Workshop for large books to generate the table of contents automatically without it disappearing? Are there known limitations with LaTeX Workshop and \tableofcontents for large projects? Thank you for any guidance!
- Find the intersections of circles using pgfmathby Jasper on February 13, 2026 at 11:45 am
Find the intersections of circles automatically using pgfmath: \documentclass[tikz,border=1cm]{standalone} \begin{document} \begin{tikzpicture} \pgfmathsetmacro{\circleonex}{0} \pgfmathsetmacro{\circleoney}{0} \pgfmathsetmacro{\circleoner}{2} \draw (\circleonex,\circleoney) circle[radius=\circleoner]; \pgfmathsetmacro{\circletwox}{1} \pgfmathsetmacro{\circletwoy}{1} \pgfmathsetmacro{\circletwor}{1.5} \draw (\circletwox,\circletwoy) circle[radius=\circletwor]; % Goal: use a sequence of \pgfmathsetmacro to find both % intersections automatically, if they exist. % It should cleanly degenerate when they no longer coincide. \end{tikzpicture} \end{document}
- Table with pgfplots and title boxes across the entire textwidthby cis on February 13, 2026 at 10:16 am
I want to use the entire \textwidth at a table, so I chosed tabularx. The table contains plots (all the same size) and boxes with titles that contain varying amounts of text or lines. The "title boxes" should all be top-aligned, all have the same width and for each row (!) the same height. This means that the "title boxes" in row 1 have the same height, and those in row 3 also have the same height; but possibly a different height than in row 1. What's the best way to configure this? I've put the "title boxes" also into tabularx tables; but perhaps multirow would be more suitable here (?). I often have problems with overfull / underfull hbox warnings here. I don't know what the ideal solution for this. Note: I plan to disable the main table's rules later; I've set \setlength\arrayrulewidth{2pt} here to better visualize the dimensions. \documentclass[paper=a5]{scrarticle} \usepackage[margin=14mm, showframe]{geometry} \usepackage{tabularx} % \usepackage{multirow}% needed? \usepackage{pgfplots} \pgfplotsset{compat=1.18} \usepackage{lipsum}% dummy text \newcommand\mytitle[1]{% {\begin{tabularx}{\linewidth}{|X|} \hline #1 \\ \hline \end{tabularx}} } \newcommand\myplot[1]{% \begin{tikzpicture}[baseline] \begin{axis}[width=\linewidth, height=30mm] \addplot[#1, mark=*]{x^4}; \end{axis} \end{tikzpicture}} \newcolumntype{Y}{% hspaces should be as small as possible @{\hspace{1.5pt}}X@{\hspace{1.5pt}}} \setlength\arrayrulewidth{2pt}% to see the effects \begin{document} \noindent\begin{tabularx}{\textwidth}{| Y | Y |} % Title 1 (row 1, column 1) ================== \mytitle{Title 1: \lipsum[1][1-2]} % Title 2 (row 1, column 2) ================== & \mytitle{Title 2: \lipsum[1][1]} \\ % Plot 1 (row 2, column 1) ================== \myplot{brown} % Plot 2 (row 2, column 2) ================== & \myplot{red} \\ \hline % Title 3 (row 3, column 1) ================== \mytitle{Title 3: \lipsum[1][2]} % Title 4 (row 3, column 2) ================== & \mytitle{Title 4: \lipsum[1][1-4]} \\ % Plot 3 (row 4, column 1) ================== \myplot{blue} % Plot 4 (row 4, column 2) ================== & \myplot{orange} \\ \end{tabularx} \end{document}
- TeXShop no longer using latexmkby jan on February 13, 2026 at 3:14 am
For many years, I had no problem with using the latexmk directives like: % !TEX TS-program = lualatexmk in TeXShop. Recently, however, that doesn't work anymore - after some update, unfortunately I don't remember exactly when it no longer worked. But now, when I compile something like: % !TEX TS-program = lualatexmk \documentclass[10pt]{article} \begin{document} test \end{document} it always gives me This is pdfTeX, Version 3.141592653-2.6-1.40.28 (TeX Live 2025) (preloaded format=pdflatex) restricted \write18 enabled. (or whatever else is selected in TeXShop) My TeX Live is all up to date, and I've deleted TeXShop.plist and all the TeXShop folders to reset but to no avail. Does anyone have any clue about where I should be looking for the problem?
- Match font size of Cyrillic to Lucida Bright with pdfLaTeXby murray on February 13, 2026 at 2:32 am
Can the size of the Tempora-TLF font be changed to match that of Lucida Bright in a pdfLaTeX document such as the following? (It is a bit too small.) Or is there another Cyrillic font that would better match the size, while still matching well the weight, etc., and if so, exactly how does one use that? % !TEX program = pdflatex \NeedsTeXFormat{LaTeX2e}[2025-11-01] \documentclass{article}[10pt] \usepackage[T2A,T1]{fontenc} \usepackage[russian,english]{babel} \babeltags{russian=russian} \usepackage[expert,lucidascale,vargreek]{lucidabr} \DeclareFontFamilySubstitution{T2A}{\rmdefault}{Tempora-TLF} %\usepackage{fontsize} %\changefontsize[11.7]{9.5} \begin{document} We include work by \textrussian{Александров}, \textrussian{Тихонов}, \textrussian{Урысoн}, and others. \end{document}
- Can I have individual bibliographystyle's for each chapter in a dissertation?by Kristin G on February 12, 2026 at 11:45 pm
I am working on my dissertation, and am including 2 previously published papers as part of the document, as individual chapters. However, they are published with different citation styles. Chapter 2 needs to use [1] citation style, while Chapter 3 needs to be (Authors, year) style. I cannot seem to figure out how to get each of these chapters to be in the different styles. Any help would be appreciated! I am trying to add a MWE of my code, not entirely sure how to do that, this is my first post. \documentclass[12pt]{thesis} \usepackage{natbib} \usepackage[sectionbib]{natbib} \usepackage{chapterbib} \renewcommand*{\bibfont}{\raggedright} \usepackage{bibentry} \doctype{dissertation} \title{Title} \author{Author} \degree{Doctor of Philosophy} \defensedate{April 09, 2026} \gradyear{2026} \department{MEM} \signatureline{Major Professor } \begin{document} \maketitle \makecopyright \preliminaries \begin{abstract} Put overall dissertation abstract here. \end{abstract} \begin{acknow} I would like to acknowledge everyone who has supported me through my research process and writing of this dissertation. \end{acknow} \tableofcontents \begin{sloppypar} \body \pagenumbering{arabic} \setcitestyle{authoryear,round} \include{Chapter2} \include{Chapter3} \end{sloppypar} \end{document} Chapter 2: \chapter{Chapter 2} \label{Chapter2} \indent This is a previous published work, in which the citations need to be both in brackets as well as in order as they appear in the paper, not alphabetical \citep{hartman2002introductory}. This follows what was published \citep{stewart1999safety}. \\ \bibliographystyle{apa} \bibliography{MWE} Chapter 3: \chapter{Chapter 3} \label{Chapter3} \indent This is a previous published work, in which the citations need to be (author,year) \cite{hartman2002introductory} and in alphabetical order \citep{esmaieli2011selecting}. \\ \bibliographystyle{apa} \bibliography{MWE} Bib file: @book{hartman2002introductory, title={Introductory Mining Engineering}, author={Hartman, H.L. and Mutmansky, J.M.}, year={2002}, publisher={John Wiley}, address={New York}, pages={592}, edition={Second} } @article{esmaieli2011selecting, title={Selecting ore pass-finger raise configurations in underground mines}, author={Esmaieli, Kamran and Hadjigeorgiou, John}, journal={Rock Mechanics and Rock Engineering}, volume={44}, pages={291--303}, year={2011}, publisher={Springer} } @article{stewart1999safety, title={Safety considerations for transport of ore and waste in underground ore passes}, author={Stewart, B and Inverson, S and Beus, M}, year={1999}, volume={51}, number={3}, journal={Mining Engineering}, pages={55--60} }
- DocumentMetadata combined with scrclass changes \@footnotemarkby user2609605 on February 12, 2026 at 10:56 pm
Following: \DocumentMetadata{lang=en-US} \documentclass{scrbook} \begin{document} x \end{document} causes (/usr/local/texlive/2025/texmf-dist/tex/latex/koma-script/tocbasic.sty) LaTeX Warning: Command \@footnotemark has changed. Check if current package is valid. (/usr/local/texlive/2025/texmf-dist/tex/latex/koma-script/scrsize11pt.clo) Why? how to avoid.. I am sure, i used both without warning. I need \DocumentMetadata to create PDF/A.
- Change font for notes (Only created with bigfoot package)by Igor Yukhimenko on February 12, 2026 at 7:21 pm
I need notes at the bottom of the page. This is in addition to the usual footnotes. AI offered many solutions, but I settled on {bigfoot} package Now the code fragment looks like this. \documentclass[draft, openright, 11pt]{extbook} \usepackage{graphicx} \usepackage[paperheight=200mm, paperwidth=126mm, outer=20mm,inner=15mm,top=22mm,bottom=20mm,footskip=1.2em,headsep=1.2em,headheight=1.6em]{geometry} \usepackage[ukrainian]{babel} %% загружает пакет многоязыковой вёрстки %% подготавливает загрузку шрифтов Open Type, True Type и др. \usepackage{indentfirst} \usepackage{titlesec,titletoc} \usepackage{paralist} \usepackage{xcolor} \usepackage[framemethod=tikz]{mdframed} \usetikzlibrary{backgrounds} \usepackage{enumitem} %\usepackage{balance} \usepackage{metalogo} \usepackage[normalem]{ulem} \usepackage[final]{microtype} % \usepackage[utf8]{inputenc} % \usepackage[T2A]{fontenc} \usepackage{extramarks,fancyhdr} \usepackage{bigfoot} %\usepackage[colorlinks=true,linkcolor=black]{hyperref} \defaultfontfeatures{Scale=MatchLowercase} %\usepackage{marginnote} \DeclareNewFootnote{bpn}[plain] \renewcommand{\thefootnotebpn}{} \renewcommand{\footnotetextbpn}[1]{% {\parindent=0pt \sffamily \leftskip=2em \rightskip=2em #1\par}% } % -------------- Настраваем шрифты ----------------------------- \input{tex/fonts.tex} \setstretch{1.05} % --------------- Формат для оглавлений ------------------------ \titleformat {\chapter} % command [display] % shape {\Huge\ebseries} % format { \raggedleft { \chn\fontsize{32pt}{48pt}\selectfont Часть \thechapter}\thispagestyle{empty} } % label {-6pt} % sep { \titlerule[2.5pt] \vspace{1.2pt} \titlerule[1.2pt] } % before-code % \titleformat{\section}[display] {\Large\secfnt} {}{-0.5pc}{\uppercase} [ \vspace{-1.4pc}% \rule{12mm}{0.5pt} \vspace{4pt} ] % % \titleformat{\subsection}[wrap] {\bfseries\sffamily\raggedleft} {}{0pt}{}[] \titlespacing{\subsection} {8pc}{1.5ex}{1pc} % % % %------------------- Содержание --------------------------- % \titlecontents{chapter} % [2.5em] % {\addvspace{20pt}\filcenter} % {\Large\MakeUppercase{часть\ \thecontentslabel}\ \sffamily\itshape\bfseries\Large} % {\sffamily\itshape\bfseries\Large} % {} % [\rule{\textwidth}{1pt}\hspace*{8pt}] % % \titlecontents{section} % [0pt] % {\addvspace{1pt}}\setlength{\marginparwidth}{4cm} % {} % {\normalsize\sffamily\uppercase} % {\titlerule*[4pt]{.}\contentspage} % % \titlecontents{subsection} % [25pt] % {\addvspace{1pt}} % {} % {\sffamily\bfseries} % {\titlerule*[4pt]{.}\contentspage} % ---------------- Счетчики ------------------------ \newcounter{qenum} \newcounter{q1} \newlength{\mdffrw} \newcommand{\qa}{\addtocounter{q1}{1}\arabic{q1})\ } \newenvironment{qustion}{% \setcounter{qenum}{0} \sffamily \vspace{12pt} \centerline{\textbf{Вопросы для размышления:}} \vspace*{-6pt} \centerline{\rule{120pt}{0.5pt}}marginparwidth=5cm \vspace*{-12pt} \small \begin{enumerate} \leftskip=0.5em \rightskip=0.5em \parskip-1em \itemsep=1.3em \parsep=0em \item[]} {\end{enumerate}} %-------------- Настройка стиля mdframed для цитат------------------- \mdfdefinestyle{bible}{ linewidth=0, backgroundcolor=white, linecolor=black!100, leftmargin=4mm, rightmargin=0, innerrightmargin=0.5em, innerleftmargin=36pt, innerbottommargin=12pt, startinnercode={\baselineskip=10pt}, apptotikzsetting={% \tikzset{mdfba{\raggedright\footnotesize}ckground/.style={},} }, firstextra={% \scoped[on background layer]{ \node[left] at (30pt,\mdfboundingboxheight-18pt){\bibquf\fontsize{36pt}{36pt}\bfseries\selectfont\color{black!10} “} } }, singleextra={% \scoped[on background layer]{ \node[left] at (30pt,\mdfboundingboxheight-18pt){\bibquf\fontsize{36pt}{36pt}\bfseries\selectfont\color{black!10} “}; } }, extra={% \scoped[on background layer]{ \setlength{\mdffrw}{0.4pt} \begin{tikzpicture} \fill [black!20,rounded corners=8pt, draw] (0,0) rectangle (\mdfboundingboxwidth,\mdfboundingboxheight); \begin{scope} \clip (32pt,0) rectangle (\mdfboundingboxwidth,\mdfboundingboxheight); \fill [black!8,rounded corners=8pt-\mdffrw, draw] (\mdffrw,\mdffrw) rectangle (\mdfboundingboxwidth-\mdffrw,\mdfboundingboxheight-\mdffrw); \end{scope} % \node[above left,black!80] at (16pt,16pt) {aas}; %{\fontsize{8}{6}\selectfont\fyanone "}; \end{tikzpicture}; } }, } %-------------------------------------------------------------------- % Create a new command % /bquute цитата из Библии %-------------------------------------------------------------------- \newcommand{\bquote}[2]{ \begin{mdframed}[style=bible]{ \bibqufont{#1} \hfil\penalty 200\hskip1em\hbox{}\nobreak\hfill\bqseries\itshape\scriptsize\hbox{#2} } \end{mdframed} } % ---------------- Основная информация книги ---------------------- % ================ Настройка некоторых параметров =================| %\sloppy %------------------------------ Красивое формирование строк| \tolerance=4000 \parindent=16pt %------------------------------Отступ первой строки| \setlength{\columnsep}{14pt} %------------Растояние между колонками| \setlength{\columnseprule}{0.05pt} %----------Линия между колонками| % -----------------------------------------------------------------| %\tolerance=600 %\emergencystretch=2pt \hfuzz=0.9pt \doublehyphendemerits=9000000 % ---------------- Двухколоночное формирование текста ------------- %\twocolumn \clubpenalty=10000 \widowpenalty=10000 \raggedbottom \hyphenpenalty=800 \righthyphenmin=2 \makeatletter \def\qitem{\begingroup\catcode`\^^M=12 \qitem@} \bgroup\catcode`\^^M=12 % \gdef\qitem@#1^^M{\addtocounter{qenum}{1}\item[\textbf{В.\arabic{qenum}:}] #1?\endgroup}% \egroup \makeatother %\linespread{1.05} \ULdepth = 0.2em \makeatletter \let\booktitle\@title \makeatother \pagestyle{fancy} \fancyfoot{}%clear all \fancyhead{}%clear all \fancyhead[C]{\sffamily\thepage} \fancyhead[L]{\sffamily\leftmark} \fancyhead[R]{\sffamily\lastrightmark} \renewcommand{\thesection}{\arabic{section}} \renewcommand{\thesubsection}{\arabic{subsection}} \renewcommand{\chaptermark}[1]{% \markboth{\textbf{Часть}\space\thechapter. \textit{#1}}{} } \renewcommand{\sectionmark}[1]{% \markright{\footnotesize\MakeUppercase{#1}} } \renewcommand{\subsectionmark}[1]{% \markright{{\small \textbf{#1}}} } %\renewcommand*{\marginfont}{\sffamily\footnotesize} \setcounter{secnumdepth}{2} %================================================================== % | % BEGIN OF DOCUMENT | % | %================================================================== \begin{document} \author{Юхименко Ігор} \title{Закон та Благодать} \begin{titlepage} \makeatletter \thispagestyle{empty} \centering{\huge\sffamily\@author} \par \vspace*{100mm} \centering{\fontsize{48pt}{66pt}\selectfont\itshape\@title} \makeatother \end{titlepage} \setcounter{page}{2} \thispagestyle{empty} % ================ Подключаем нужные файлы ======================== % \input{вступление.tex} % \input{Proto.tex} % \input{grace.tex} \input{law.tex} % \input{благодать.tex} % ================================================================= % ---------------- Содержание книги ------------------------------- %\renewcommand*\contentsname{Содержание} \clearpage %\tableofcontents \onecolumn \thispagestyle{empty} {При подготовке данного издания была использована технология \XeLaTeX} \end{document} I still need the note to be displayed in sans font. But this code not works. Additionally, the note needs to be separated by two horizontal lines.
- translucent solids in 3D: I want a translucency which reflects the depth of an object in its respective regionsby Jasper on February 12, 2026 at 6:10 pm
I have found a way to make 3D objects which are shaded based on how much a vision ray intersects the object. The way I do this is I take a bunch of low-opacity screen-facing planes, and I pass them through the object, partitioning them by it, and filtering the results which are exterior to the object (in this case, a cube). Even with high samples, it is still choppy, and it already takes forever. If someone is creative enough to come up with a better performance method for making translucent solids, this question asks for that. \documentclass[tikz,border=1cm]{standalone} \usepackage{lua-tikz3dtools} % https://github.com/Pseudonym321/TikZ-Animations/tree/master1/TikZ/lua-tikz3dtools \begin{document} \begin{tikzpicture} \setobject[ name = {view}, object = {Matrix.zyzrotation3(pi/2,pi/3,pi/6)} ] \setobject[ name = {viewinverse}, object = {view:inverse()} ] \appendsolid[ ustart = {-1}, ustop = {1}, usamples = {2}, vstart = {-1}, vstop = {1}, vsamples = {2}, wstart = {-1}, wstop = {1}, wsamples = {2}, transformation = {view}, x = {u}, y = {v}, z = {w}, fill options = { preaction = { fill = gray, fill opacity = 0.3 }, postaction = { draw = black, line width = 0.5pt, line cap = round, line join = round } }, filter = {false} ] \foreach \h in {-2,-1.95,...,2} { \appendsurface[ ustart = {-2}, ustop = {2}, usamples = {2}, vstart = {-2}, vstop = {2}, vsamples = {2}, transformation = {Matrix.identity3()}, x = {u}, y = {v}, z = {\h}, fill options = { preaction = { fill = gray, fill opacity = 0.05 }, postaction = { draw = none, line width = 0.5pt, line cap = round, line join = round } }, filter = { abs(A:hadd(B):hadd(C):hscale(1/3) :multiply(viewinverse)[1]) < 1.01 and abs(A:hadd(B):hadd(C):hscale(1/3) :multiply(viewinverse)[2]) < 1.01 and abs(A:hadd(B):hadd(C):hscale(1/3) :multiply(viewinverse)[3]) < 1.01 } ] } \displaysimplices \end{tikzpicture} \end{document}
- Bold math with unicode-math and siunitxby pejsek on February 12, 2026 at 5:42 pm
I am creating a table that needs a bold header. In the header I want to typeset units using siunitx. I want the units to be inside parentheses. I am also using the unicode-math package and compiling with LuaLaTeX. \documentclass{article} \usepackage{fontspec} \usepackage{unicode-math} \usepackage{booktabs} \usepackage{siunitx} \begin{document} \centering \setlength{\tabcolsep}{5mm} \renewcommand{\arraystretch}{1.1} \begin{tabular}{@{} l c @{}} \toprule \textbf{Material} & \textbf{Density} \(\symbf{ \left( \unit[per-mode=fraction]{\gram\per\centi\metre\cubed} \right) }\) \\ \midrule Air & \num{0.0012} \\ Water & \num{1} \\ \bottomrule \end{tabular} \end{document} The output looks like this: I want all of the header to be bold, including the scalable parentheses and all of the units. Like this: \documentclass{article} \usepackage{fontspec} %\usepackage{unicode-math} \usepackage{booktabs} \usepackage{siunitx} \begin{document} \centering \setlength{\tabcolsep}{5mm} \renewcommand{\arraystretch}{1.1} \begin{tabular}{@{} l c @{}} \toprule \textbf{Material} & \textbf{Density} \boldmath\( \left( \unit[reset-math-version=false,per-mode=fraction]{\gram\per\centi\metre\cubed} \right) \) \\ \midrule Air & \num{0.0012} \\ Water & \num{1} \\ \bottomrule \end{tabular} \end{document} I experimented with some variations of this question but without much success. Thank you for any help.
- Character variant applied only to initialby Apothikon on February 12, 2026 at 5:14 pm
I am trying to achieve exactly the same result as this question butwith LuaLaTex (so,possibly using Lua OTF handler): Can one set a specific character variant in xelatex for the word first letter only? EDIT: Another approach may be to use a Babel transformation, even though this would make the feature language-related. Any advice? I give here a (very) minimal working example: \documentclass{article} \usepackage{fontspec} \setmainfont{EBGaramond12-Italic.otf} % I want to add: [CharacterVariant=5:0] only to initial v % probably using \directlua {fonts.handlers.otf.addfeature \begin{document} Ha visto un valvassore vivere come un valvassino invidioso che gridava evviva! \end{document}
- Styled read out example for a value from a pgfplotstable (TikZ-spy?)by cis on February 12, 2026 at 4:04 pm
I have a pgfplotstable: I would like to create a reading out example for a value, with the red lines and the framed cell. This could look like this then: How could I do that best way? My immediate idea would be a TikZ-spy. But maybe there's a completely different/easier way. %\documentclass[paper=a5]{scrarticle} %\usepackage[margin=14mm, showframe]{geometry} \documentclass[margin=5pt, varwidth]{standalone} \usepackage{diagbox} \usepackage{colortbl} \usepackage{pgfplotstable} \pgfplotsset{compat=1.18} \usetikzlibrary{spy} \pgfplotstableread[col sep=comma]{ n, k, 0.1, 0.2, 0.3, 0.4 1, 0, 1.1, 1.2, 1.3, 1.4 1, 1, 2.1, 2.2, 2.3, 2.4 2, 0, 2.1, 2.2, 2.3, 2.4 2, 1, 3.1, 3.2, 3.3, 3.4 2, 2, 4.1, 4.2, 4.3, 4.4 3, 0, 3.1, 3.2, 3.3, 3.4 3, 1, 4.1, 4.2, 4.3, 4.4 3, 2, 5.1, 5.2, 5.3, 5.4 3, 3, 6.1, 6.2, 6.3, 6.4 }{\mytable} \begin{document} \pgfplotstabletypeset[ every head row/.style={before row=\hline, after row=\hline}, columns/k/.style = {% k column column name={\diagbox{$k$}{$p$}}, column type={|>{\cellcolor{pink}}c|}, },% ]{\mytable} \begin{tikzpicture}[ spy using outlines={rectangle, magnification=1, connect spies} ] \spy [blue, width=2cm, height=1cm] on (0,1) in node [fill=white] at (3,0.5); \end{tikzpicture} \end{document}
- Tagging augmented matrices and row reductionby Jasper on February 12, 2026 at 3:45 pm
I want to tag this row reduction in the style that @DavidCarlisle showed me today in chat. https://chat.stackexchange.com/transcript/message/68753083#68753083 I also want the arrow with operations to be tagged coherently too. \DocumentMetadata{ lang = en ,pdfversion = 2.0 ,pdfstandard = {UA-2} ,tagging = on } \tagpdfsetup {math/mathml/luamml/load=true} \documentclass[letterpaper]{book} \usepackage{mathtools} \usepackage{unicode-math} \usepackage{extarrows} \title{The Elusive Zeebra} \author{Jasper} \date{May 1, 2036} \begin{document} \maketitle \[ \biggl\lbrack \begin{array}{cc|c} 1 & 2 & 3 \\ 2 & 5 & -2 \end{array} \biggr\rbrack \xrightarrow{\rho_2\to\rho_2-2\rho_1} \biggl\lbrack \begin{array}{cc|c} 1 & 2 & 3 \\ 0 & 1 & -8 \end{array} \biggr\rbrack \] \end{document}
- Bold small caps in Times New Romanby rensemil on February 12, 2026 at 2:27 pm
I am using fontspec in order to write in Times New Roman. The authors of cited literature are always set in small caps. This initially made problems because the font has no small caps, but I solved those by googling and finding a solution on stackexchange. However, the small caps don't work when they are also bold, e.g. in a section heading. This is my MWE: \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \usepackage{fontspec} \setmainfont{Times New Roman}[ SmallCapsFont={TeX Gyre Termes}, SmallCapsFeatures={Letters=SmallCaps}, ] \begin{document} \section{Regel von \textsc{Ritschl}} Regel von \textsc{Ritschl} \end{document} Which produces: As you can see, the small caps in the text body work just fine. In the heading, however, the small caps are not set bold. When using the ebgaramond package, this issue does not occur and everything looks as it should and very pretty, but, of course, in Garamond: I actually prefer the looks of Garamond but unfortunately I have to write in Times New Roman. Does anyone know how this could be fixed? Thanks in advance! If relevant: I am using LaTeX with LaTeX workshop in VSCode on a MacBook Air.
- reversed bracket in Awami font (Texlive 2024ff)by dietz on February 12, 2026 at 12:30 pm
In an example like (کتاب 1:4) Awami is reversing the second bracket since Texlive 2024. Is this a bug, and can I get around it? In the following example, Lateef works fine but Awami does not. \documentclass[fontsize=12pt]{scrbook} \usepackage[a6paper]{geometry} \usepackage{fontspec} \usepackage[RTLdocument]{bidi} \setmainfont[Renderer=Graphite,RawFeature={Short forms=All}]{Awami Nastaliq} \newfontfamily\lateef[Script=Arabic]{Lateef-Regular} \TeXXeTstate=1 \begin{document} (کتاب 1:4) {\lateef (کتاب 4:1)} \end{document}
- Crossed branches in tikz [closed]by Uri Lifshitz on February 12, 2026 at 11:11 am
I am having trouble figuring out how to have a drawed line crossed out and a dotted line in tikzpicture to have a desired result which will look something like thanks!
- Counters do not increase when againframe'ing a hidden frameby scottkosty on February 12, 2026 at 9:37 am
I'm running into a problem that Beamer is behaving exactly as it should :). I am using a solution that begins a frame with \begin{frame}<beamer:0|handout:0> and then recalls the frame with \againframe. The purpose of this approach is to get miniframes and frame numbers to increase, as desired here: How to adapt miniframes to increasing pagenumber in overprint However, any theorems or other numbered environments do not have their numbers increased. I can increase them manually, but I don't want to keep track of manually increasing counters. Is there any way to make these hacks any smoother? % example adapted from: https://tex.stackexchange.com/a/759437 % original example (before adaptation): by jlab % Retrieved 2026-02-11, License - CC BY-SA 4.0 \documentclass[compress]{beamer} % \documentclass[compress,handout]{beamer} \setbeamertemplate{footline}[frame number]{} \beamerdefaultoverlayspecification{<+-| alert@+>} \usecolortheme{crane} \useoutertheme[ subsection=false ]{miniframes} \setbeamertemplate{theorems}[numbered] % from Sam's answer at https://tex.stackexchange.com/a/758177/12212 \setbeamertemplate{mini frame}{% \ifnum\insertframeendpage=\thepage \color{green}% \fi \begin{pgfpicture}{0pt}{0pt}{0.1cm}{0.1cm} \pgfpathcircle{\pgfpoint{0.05cm}{0.05cm}}{0.05cm} \pgfusepath{fill,stroke} \end{pgfpicture}% } \makeatletter \begin{document} \section{My subsection} \begin{frame} \begin{theorem} Here is Theorem 1. \end{theorem} \end{frame} \begin{frame} \begin{theorem} Here is Theorem 2. \end{theorem} \end{frame} \begin{frame}<beamer:0|handout:0>[label=myframe, noframenumbering] Definitition: Let $X$ be a rv. Then, $X$ is a \emph{continuous rv} if there exists a function, $f_{X}:\mathbb{R}\mapsto[0,\infty)$,% dummy ] for code indent called a \emph{probability density function (pdf)}, such that for any numbers $c_{1}\le c_{2}$, \[ Pr(X\in[c_{1},c_{2}])=Pr({c_{1}}\le X\le c_{2})=\int^{c_{2}}_{c_{1}}f_{X}(x)dx. \] \pause \begin{overprint} \onslide<2|handout: 1> \begin{block}{} Here I show a graph of a pdf. (place holder for the graph) \end{block} \onslide<3-5|handout: 2> Here are some properties: \begin{itemize} \item one \item two \item three \end{itemize} \onslide<6-|handout: 3> Some important implications: \begin{itemize} \item Implication 1 \item Implication 2 \end{itemize} \begin{theorem} Here is Theorem 3. \end{theorem} \end{overprint} \end{frame} \mode<beamer>{% \againframe<beamer:-2>[<alert@+|+->]{myframe} \againframe<beamer:3-5>[<alert@+|+->]{myframe} \againframe<beamer:6->[<alert@+|+->]{myframe} } \mode<handout>{% \againframe<handout:1>{myframe} \againframe<handout:2>{myframe} \againframe<handout:3>{myframe} } % Gives desired behavior, but I do not want to manually keep track of counters. %\refstepcounter{theorem} \begin{frame} \begin{theorem} Here is Theorem 4. \end{theorem} \end{frame} \begin{frame} \begin{theorem} Here is Theorem 5. \end{theorem} \end{frame} \end{document} The problem is "Here is Theorem 4" is numbered as Theorem 3. Here is the output (showing the problem):
- Loading and using SQLiteby Gary on February 12, 2026 at 7:24 am
I'm trying to use SQLite and cannot get it to even initialize. I tried to follow the instructions at https://www.pragma-ade.nl/general/manuals/luametatex.pdf pages 701-702. Do I need to do something with pages 695-696 first to get sqlite loaded? Thank you. function library.load ( <t:string> filename, <t:string> openname ) return <t:function>, -- target <t:string> -- foundname end but there are no guarantees that it will work. local UserData = UserData or { } function UserData.CallBack (nofcolumns,values,fields) context("Reached the callback.") context.par() end context.startTEXpage { offset = "1ex" } local init = optional.sqlite.initialize() if init == true then context("Initialize successful") else context("Initialize failed") end context.par() local instance = optional.sqlite.open ( ":memory:" ) local query = "select 1 as id, 'a' as key;" local result = optional.sqlite.execute ( instance, query, UserData.CallBack ) if result == true then context("Execution succeeded") else context("Execution failed") end context.par() context.stopTEXpage() optional.sqlite.close(instance)
- Formatting ToC and chapters in a tagged PDFby wsmith on February 12, 2026 at 4:54 am
I have been tasked with designing a template for creating a tagged PDF that meets certain formatting requirements. The only major obstacle I have encountered is in generating a Table of Contents that meets these (rather stringent) demands. Normally, I would use tocloft for this; however, as it has been pointed out in other posts, this is currently not an option. I have tried working around this, but I must admit that I am out of my depth. Between the default settings and some things I have found on this forum, I have been able to get the ToC to a place that I like. There are three things I still can't figure out: I would like to set the font (italic or boldface) for the chapters, sections, subsection, etc. I would like to force chapter titles to appear uppercase in the ToC. I need to add the word "Page" above the page numbers in the ToC, list of figures, and list of tables. I have a cheap workaround for (2) which is just to make a new command: \newcommand{\Chapter}[1]{\chapter[\MakeUppercase{#1}]{#1}} but this is quite stupid. To acheive (3), I write \makeatletter \newcommand{\pageheaderlabel}{ \hfill\makebox[\@pnumwidth][c]{Page}\par\smallskip } \let\old@starttoc\@starttoc \renewcommand{\@starttoc}[1]{ \pageheaderlabel \old@starttoc{#1} } \makeatother but this is quite hacky (and is slightly off-center). On a somewhat related note, I have been using titlesec as I normally would; e.g, \usepackage[rm, tiny, center, compact]{titlesec} \titleformat{\chapter} {\ifdefined\boldheadings\bfseries\fi\centering\normalsize} {\thechapter.}{1em}{\makeuppercase} \titlespacing*{\chapter} {0pt} {0pt} {20pt} and I have not encountered any issues, despite the fact it is currently marked as incompatible with tagging. If it is breaking something, I cannot tell what. If there are any known workarounds to achieve this without titlesec, that would be much appreciated. ADDENDUM: Here is a stripped down example: % !TeX program = lualatex \DocumentMetadata{uncompress,lang=en, tagging=on, pdfstandard=ua-2,pdfstandard=a-4f} \documentclass[12pt]{report} \usepackage{lipsum} \usepackage[hidelinks]{hyperref} \usepackage{etoolbox} \usepackage[doublespacing]{setspace} \usepackage[letterpaper]{geometry} \geometry{verbose, margin=1in} \usepackage[rm, tiny, center, compact]{titlesec} % FORMATTING OPTIONS: %\def\BoldHeadings{} % <- uncomment to make chapters boldface (Goal: toggle consistently with ToC) \titleformat{\chapter} {\ifdefined\BoldHeadings\bfseries\fi\centering\normalsize} {\thechapter.}{1em}{\MakeUppercase} \titlespacing*{\chapter} {0pt} {0pt} {20pt} % To make "Page" appear above page #'s in TOC \makeatletter \newcommand{\pageheaderlabel}{ \hfill\makebox[\@pnumwidth][c]{Page}\par\smallskip } \let\old@starttoc\@starttoc \renewcommand{\@starttoc}[1]{ \pageheaderlabel \old@starttoc{#1} } \makeatother % add dots, courtesy of linked post \AddToHookWithArguments{contentsline/text/after}{ \ifnum#1=0 \dotfill \fi } % stupid trick to force chapter titles to be uppercase in TOC \newcommand{\Chapter}[1]{\chapter[\MakeUppercase{#1}]{#1}} \begin{document} \chapter*{TABLE OF CONTENTS} \addcontentsline{toc}{chapter}{TABLE OF CONTENTS} \begin{singlespace} \renewcommand\contentsname{\normalfont} {} \begingroup \let\clearpage\relax \let\cleardoublepage\relax \tableofcontents \endgroup \end{singlespace} \newpage % similar for LoF, LoT \Chapter{Fake Chapter} \section{Fake Section} \subsection{Fake Subsection 1} \subsubsection{Fake Subsubsection} \lipsum[3] \subsection{Fake Subsection 2} \lipsum[1] \end{document}
- How can I geometrically translate a line segment on a line?by Jasper on February 12, 2026 at 4:17 am
How can I geometrically translate a line segment on a line? I want to move the pink segment so that it starts at three and goes to four. I don't just want to teleport it. I want a geometric construction for this - Euclidean style. \documentclass[tikz,border=1cm]{standalone} \begin{document} \begin{tikzpicture} \draw[thick,->] (-1,0) -- (5,0) node[below left] {\(x\)}; \draw[ preaction = { draw = black, line width = 4pt }, postaction = { draw = pink, line width = 2pt } ] (0,0) -- (1,0); \fill (0,0) circle[radius = 3pt] node[below=3pt] {\(0\)}; \fill (1,0) circle[radius = 3pt] node[below=3pt] {\(1\)}; \fill (3,0) circle[radius = 3pt] node[below=3pt] {\(3\)}; \end{tikzpicture} \end{document}
- First row in table is too high, how to reduce the height automatically?Update by answerby MBE on February 11, 2026 at 10:30 pm
How to employ values I have to derive later?(For skipping spaces in a table)The only way I can think of is to reflect the first column(x) of any row into a dummy column(0) to get the value before using it. But at which point of the code I may do this? ( This table is made of boxes. Crazy code it is,but I think you know me by now) \def\newcounts[#1]{% \csname newcount\expandafter\endcsname\csname start#1\endcsname \csname newcount\expandafter\endcsname\csname stop#1\endcsname} \newcounts[A] \newcounts[B] \newcounts[C] \newcounts[D] \def\newdimens[#1]{ \csname newdimen\expandafter\endcsname\csname #1\endcsname } \newdimens[colwidth]\newdimens[currdp]\newdimens[currht]\newdimens[filldepth]\newdimens[maxdepth] \def\newfonts[#1,#2]{\font#1=#2} \newfonts[\tinyfont,cmr5] \def\t{\par}%shortcut \def\colsep{\hskip20pt} \maxdepth=0.3\vsize %the maxsize of a tablerow \parindent=0pt \colwidth=50pt \raggedright \def\docol[#1]#2{% \setbox#1=\vtop{\vskip\baselineskip\hsize=\colwidth {\tinyfont (#1)}#2\vskip\baselineskip\hrule} \currdp=\dp#1\currht=\ht#1 \advance\currdp by \currht \filldepth=\maxdepth \advance\filldepth by -\currdp \setbox#1=\vtop{\vskip\baselineskip\hsize=\colwidth {\tinyfont (#1)}#2\vskip\filldepth \vskip2\baselineskip \hrule} }%enddoecol %filling boxes for testing \startA=10 \stopA=15 \loop \ifnum\startA<\stopA \docol[\the\startA]{Rund ein Drittel der Bundesrepublik ist bewaldet} %\maxdepth=\currdp%here is the question \advance\startA by 1 \repeat %filling boxes for testing %filling boxes for testing \startA=20 \stopA=25 \loop \ifnum\startA<\stopA %\maxdepth=\currdp%here is the question \docol[\the\startA]{Rund ein Drittel der Bundesrepublik ist bewaldet. Elf Millionen Hektar erstrecken sich von den Küsten im Norden bis zu den Alpen im Süden.} \advance\startA by 1 \repeat %filling boxes for testing %\docol[11]{fjt htjtf bgr bfdd}% this is how a column is built %\docol[12]{fjt htjtf bgr bfdd}% this is how a column is built \def\makerow[#1,#2]{ \hbox{%the maxsize of a tablerow \startA=#1 \stopA=#2 \loop \ifnum\startA<\stopA \colsep\copy\startA \ifvoid\startA[void cell] \startA=\stopA \fi %reporting void cell cancel the loop \advance \startA by 1 \repeat} } \makerow[10,20] \makerow[20,30] \makerow[30,40] \bye
- Crop certain percent from each side of the figureby monty01 on February 11, 2026 at 8:20 pm
I would like to crop x percent from each side from the img. \documentclass{article} \usepackage{graphicx} \begin{document} \begin{figure}[h] \centering \includegraphics[scale=0.3]{example-image-a} \caption{Caption} \label{fig:placeholder} \end{figure} \end{document} insted of using \includegraphics[scale=0.3]{example-image} I would like to call \cropimg{scale}{img}{crop percentage}
- Biblatex: First citation as full author + title; following citations ibid. or - when interrupted - short author-title citationby alcuinus on February 11, 2026 at 7:30 pm
The journal I am writing for requires: Whenever a bibliography entry is cited the first time: given name, family name, title, page -- no other data as publisher and so on When it is used again with other entries in between it will be shown as: familyname, title, page When it is used again without other entries in between it will be shown as"Ibid." With ext-verbose-trad1, citetracker=true I get "cit." which is not required. MWE: \documentclass[a4paper]{article} \usepackage[style=ext-verbose-trad1, citetracker=true,backend=biber]{biblatex} \begin{filecontents*}{\jobname.bib} @Book{A1, author = {Author, Anton}, title = {The First Very Long Title}, subtitle = {The Subtitle}, shorttitle = {The First}, year = {1900}, publisher = {The Printer}, address = {Printtown} } @Book{B2, Author = {Black, Berth}, Title = {The Second Title}, Year = {2000}, publisher = {The Typesetter}, address = {Typetown} } \end{filecontents*} \addbibresource{\jobname.bib} \begin{document} First title:\autocite[34]{A1}. Second citation (same title other page)\autocite[70]{A1}. Second title\autocite[12]{B2}. Back to first book (other page)\autocite[50]{A1}. Back to the first book (other page)\autocite[60]{A1}. Back to the first book (same page)\autocite[60]{A1}. Second title again\autocite[21]{B2}. \printbibliography \end{document} Question. How to substitute "cit." with shorttitle or title? See notes 4 and 7. The first and third note should print only given name + family name + title, but I will ask this in another post. Thanks for any help.
- Another way to write powers?by Lara de Assumpcao Maffei Piero on February 10, 2026 at 10:43 pm
My new keyboard writes ^ as ˆ, and overleaf doesn't recognize these the same way. Is there an alternative symbol in latex for writting powers and indexes or some way to make overleaf recognize ˆ as ^?
- Rows of 'cases' environment too close to each otherby Dhairya Kumar on February 10, 2026 at 6:10 am
I have an issue in typing the above equation in LaTeX, where the two rows of the cases environment are so close that they almost touch. Help me do it in a clean way. Code: \[ \boxed{ \displaystyle\int\limits_{0}^{\pi/2}\sin^{n}{x}dx= \displaystyle\int\limits_{0}^{\pi/2}\cos^{n}{x}dx= \begin{cases} \dfrac{n-1}{n}\cdot\dfrac{n-3}{n-2}\cdots \dfrac45 \cdot\dfrac23 \text{ if $n$ is odd}\\ \dfrac{n-1}{n}\cdot\dfrac{n-3}{n-2}\cdots \dfrac34 \cdot\dfrac12\cdot \dfrac{\pi}{2}\text{ if $n$ is even} } \]
- Twisted Equalityby Entropy on February 8, 2026 at 8:14 pm
I am trying to create a new math symbol. Could someone please help me with it? My current code: \documentclass[12pt]{report} \RequirePackage{tikz} \newcommand{\eq}{\begin{tikzpicture}% [scale=.175, line width=0.5pt] \draw (-1,1) -- (0,0); \draw (0,1) -- (-0.5,0.5); \draw (0,-1) -- (-1,0); \draw (-0.5,-0.5) -- (-1,-1); \end{tikzpicture}} \begin{document} \[ u - \eq - u \] \end{document} However, the symbol I am actually going for is this: I was using it for something like this: