Hot
- 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!
- 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
- Setting a different font for theorems [duplicate]by why on February 11, 2026 at 9:26 pm
I would prefer for all of the theorems in a document of mine to be written in slanted style rather than italic. The math symbols themselves should still appear in italic, only the written text should be slanted. In my opinion this adds to readability. Consider the following example taken from Qing Liu's Algebraic Geometry and Arithmetic curves, p. 71: Is there any easy way to do this for the whole document instead of changing every single theorem?
- 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.
- How to tweak the edge's brace centering aligned with forest package?by Explorer on February 11, 2026 at 12:43 pm
Description and Code Here below is my first version code: \documentclass{standalone} \usepackage{forest} \usetikzlibrary{decorations.pathreplacing} \begin{document} \begin{forest} for tree={ grow'=east, anchor=west, inner sep=0pt, outer sep=0pt, fit=band, align=left, if n=1{edge path'={(!ul.south west)-- (!u1.north west)}}{no edge}, edge={decorate, decoration={brace,amplitude=1.5mm,raise=2mm}}, draw,tikz={\fill[](.anchor)circle[radius=1pt];} } [1 First-level title [1.1 Second-level title [1.1.1 Third-level title [1.1.1.1 Fourth-level title] [1.1.1.2 Fourth-level title] ] [1.1.2 Third-level title [1.1.2.1 Fourth-level title] [1.1.2.2 Fourth-level title] ] ] [1.2 Second-level title [1.2.1 Third-level title [1.2.1.1 Fourth-level title] [1.2.1.2 Fourth-level title] ] [1.2.2 Third-level title [1.2.2.1 Fourth-level title] [\parbox{8em}{Text text text text text text text text text text text text}] ] ] ] \end{forest} \end{document} which gives: I manage to manually calculate the heights: \documentclass[border=5pt]{standalone} \usepackage{forest} \usetikzlibrary{decorations.pathreplacing} \begin{document} \begin{forest} for tree={ grow'=east, anchor=west, inner sep=0pt, outer sep=0pt, fit=band, align=left, if n=1{edge path'={(!ul.south west)-- (!u1.north west)}}{no edge}, edge={decorate, decoration={brace,amplitude=1.5mm,raise=2mm}}, before drawing tree={ for tree={ if n children=0{}{ y/.pgfmath={(y("!1")+max_y("!1")+y("!l")+min_y("!l"))/2} } } } } [1 First-level title [1.1 Second-level title [1.1.1 Third-level title [1.1.1.1 Fourth-level title] [1.1.1.2 Fourth-level title] ] [1.1.2 Third-level title [1.1.2.1 Fourth-level title] [1.1.2.2 Fourth-level title] ] ] [1.2 Second-level title [1.2.1 Third-level title [1.2.1.1 Fourth-level title] [1.2.1.2 Fourth-level title] ] [1.2.2 Third-level title [1.2.2.1 Fourth-level title] [\parbox{8em}{Text text text text text text text text text text text text}] ] ] ] \end{forest} \end{document} It works with English-text: However, things changed with ctex bundle: \documentclass[border=5pt]{standalone} \usepackage[fontset=fandol]{ctex} % \usepackage[LoadFandol]{xeCJK} \usepackage{forest} \usetikzlibrary{decorations.pathreplacing} \begin{document} \begin{forest} for tree={ grow'=east, anchor=west, inner sep=0pt, outer sep=0pt, fit=band, align=left, if n=1{edge path'={(!ul.south west)-- (!u1.north west)}}{no edge}, edge={decorate, decoration={brace,amplitude=1.5mm,raise=2mm}}, }, before drawing tree={ for tree={ if n children=0{}{ y/.pgfmath={(y("!1")+max_y("!1")+y("!l")+min_y("!l"))/2} } } } [1 一级标题 [1.1 二级标题 [1.1.1 三级标题 [1.1.1.1 四级标题] [1.1.1.2 四级标题] ] [1.1.2 三级标题 [1.1.2.1 四级标题] [1.1.2.2 四级标题] ] ] [1.2 二级标题 [1.2.1 三级标题 [1.2.1.1 四级标题] [1.2.1.2 四级标题] ] [1.2.2 三级标题 [1.2.2.1 四级标题] [\parbox{8em}{文字文字文字文字文字文字文字文字文字文字文字文字}] ] ] ] \end{forest} \end{document} Question I was not sure what caused the difference here, is my y/.pgfmath={(y("!1")+max_y("!1")+y("!l")+min_y("!l"))/2} not so accurate? Or something baseline difference between English-text and CJK-text? Is there any suggestion on my code to work for both English-text and CJK-text together? Edited with schemata-version: \documentclass[border=5pt]{standalone} \usepackage[fontset=fandol]{ctex} \usepackage{schemata} \begin{document} \Schema{-2ex}{8ex} { \schemabox{1 一级标题} } { \Schema{0ex}{4.5ex} { \schemabox{1.1 二级标题} } { \schema { \schemabox{1.1.1 三级标题} } { \schemabox{1.1.1.1 四级标题} \schemabox{1.1.1.2 四级标题} } \schema { \schemabox{1.1.2 三级标题} } { \schemabox{1.1.2.1 四级标题} \schemabox{1.1.2.2 四级标题} } } \Schema{-1.5ex}{5.5ex} { \schemabox{1.2 二级标题} } { \schema { \schemabox{1.1.1 三级标题} } { \schemabox{1.1.1.1 四级标题} \schemabox{1.1.1.2 四级标题} } \schema { \schemabox{1.1.2 三级标题} } { \schemabox{1.1.2.1 四级标题}\smallskip \schemabox{\parbox{8em}{\linespread{1.1}\selectfont 文字文字文字文字文字文字文字文字文字文字文字文字}} } } } \end{document} I was not sure I get the correct way to nested \Schema, but just consider that if the tree is more complex, says 4 layers, the schema's syntax has less advantage, and need manually \Schema{-1.5ex}{5.5ex} adjustment, it's not a good practice, imho.
- Index in scrbook gets an (unwanted) index titleby Jack on February 11, 2026 at 11:12 am
The index, generated with scrbook, shows the index-title as page header. In scrartcl it does not. In a real world (complex) situation, the title appears only, if the index comprises exactly 2 pages. With an index of 3 or more pages, this text does nor appear. Is this a bug, or am I doing something stupid? My MWE: %\documentclass[paper=a5,fontsize=14pt]{scrartcl} \documentclass[paper=a5,fontsize=14pt]{scrbook} \usepackage[textheight=10cm]{geometry} \usepackage{imakeidx} \indexprologue{% \footnotesize \textbf{% Example index to show the problem when the index comprises 2 or more pages. This problem shows up with class scrbook, not with class scrartcl } } \makeindex[title=\large List of Words] \begin{document} Page 1 \index{Example-01!\textbf{Example} with some text to fill the line} \index{Example-02!\textbf{Example} with some text to fill the line} \index{Example-03!\textbf{Example} with some text to fill the line} \index{Example-04!\textbf{Example} with some text to fill the line} \index{Example-05!\textbf{Example} with some text to fill the line} \index{Example-06!\textbf{Example} with some text to fill the line} \index{Example-07!\textbf{Example} with some text to fill the line} \index{Example-08!\textbf{Example} with some text to fill the line} \index{Example-09!\textbf{Example} with some text to fill the line} \index{Example-10!\textbf{Example} with some text to fill the line} \index{Example-11!\textbf{Example} with some text to fill the line} \index{Example-12!\textbf{Example} with some text to fill the line} \index{Example-13!\textbf{Example} with some text to fill the line} \index{Example-14!\textbf{Example} with some text to fill the line} \index{Example-15!\textbf{Example} with some text to fill the line} \index{Example-16!\textbf{Example} with some text to fill the line} \index{Example-17!\textbf{Example} with some text to fill the line} \index{Example-18!\textbf{Example} with some text to fill the line} \index{Example-19!\textbf{Example} with some text to fill the line} \index{Example-20!\textbf{Example} with some text to fill the line} \printindex \end{document}
- Highlighting matrix multiplicationby Dimitrios ANAGNOSTOU on February 10, 2026 at 11:58 pm
I know there are several relevant questions on TeX Stack Exchange about nicely highlighting matrix multiplication, and some of them have excellent answers. I apologize if my question is a duplicate. I have managed to highlight the various entries manually, but it requires quite a bit of work. Is there a way to automate this procedure? \documentclass{article} \usepackage{amsmath, amssymb} \usepackage{xcolor} \usepackage[margin=1.5cm]{geometry} \begin{document} \section*{Matrix Multiplication} We want to compute the product \(AB\) for \[ A = \begin{bmatrix} 3 & 1 & -1 \\ -1 & 0 & 4 \end{bmatrix}, \quad B = \begin{bmatrix} 2 & 1 & 3 \\ -1 & 3 & 4 \\ 0 & 2 & 5 \end{bmatrix}. \] We can illustrate the multiplication as follows, highlighting each row of \(A\) and each column of \(B\): \[ \begin{array}{c@{\hspace{2em}}c@{\hspace{1em}}c} & \begin{bmatrix} \color{blue}{2} & \color{orange}{1} & \color{purple}{3} \\ \color{blue}{-1} & \color{orange}{3} & \color{purple}{4} \\ \color{blue}{0} & \color{orange}{2} & \color{purple}{5} \end{bmatrix} & \\[1em] % \begin{bmatrix} \color{red}{3} & \color{red}{1} & \color{red}{-1} \\ \color{green}{-1} & \color{green}{0} & \color{green}{4} \end{bmatrix} & = & \begin{bmatrix} \underbrace{\color{red}{3}\cdot \color{blue}{2} + \color{red}{1}\cdot \color{blue}{-1} + \color{red}{-1}\cdot \color{blue}{0}}_{\color{black}{5}} & \underbrace{\color{red}{3}\cdot \color{orange}{1} + \color{red}{1}\cdot \color{orange}{3} + \color{red}{-1}\cdot \color{orange}{2}}_{\color{black}{4}} & \underbrace{\color{red}{3}\cdot \color{purple}{3} + \color{red}{1}\cdot \color{purple}{4} + \color{red}{-1}\cdot \color{purple}{5}}_{\color{black}{8}} \\[0.5em] % \underbrace{\color{green}{-1}\cdot \color{blue}{2} + \color{green}{0}\cdot \color{blue}{-1} + \color{green}{4}\cdot \color{blue}{0}}_{\color{black}{-2}} & \underbrace{\color{green}{-1}\cdot \color{orange}{1} + \color{green}{0}\cdot \color{orange}{3} + \color{green}{4}\cdot \color{orange}{2}}_{\color{black}{7}} & \underbrace{\color{green}{-1}\cdot \color{purple}{3} + \color{green}{0}\cdot \color{purple}{4} + \color{green}{4}\cdot \color{purple}{5}}_{\color{black}{17}} \end{bmatrix} \end{array} \] Thus, the final product is \[ AB = \begin{bmatrix} 5 & 4 & 8 \\ -2 & 7 & 17 \end{bmatrix}. \] \bigskip \textit{Note:} \(BA\) is not defined because \(B\) is \(3\times 3\) and \(A\) is \(2\times 3\); the number of columns of \(B\) (3) does not match the number of rows of \(A\) (2). In general, \(AB \neq BA\). \end{document}
- 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 ^?
- Numbering equations in dcases without \usepackage{empheq}by Sebastiano on February 10, 2026 at 9:09 pm
At the moment, I don't remember how to number the equations inside dcases , with the amsart class, without empheq, in order to assign a label to each one. \documentclass{amsart} \usepackage{mathtools} \begin{document} \begin{subequations} \begin{equation} \begin{dcases} 0 \le \frac{u+v}{2} \le 1 \\ 0 \le \frac{v-u}{2} \le 1 - \frac{u+v}{2} \end{dcases} \iff \begin{dcases} 0 \le u+v \le 2 \\ \label{Psojjn} 0 \le v-u \le 2 - (u+v) \end{dcases} \end{equation} \end{subequations} \end{document} Addendum: My desidered output.
- Creating Circular Domains with TikZ [closed]by Assuério Cavalcante on February 10, 2026 at 3:45 pm
First, apologies if this question has been asked before. I'm trying to create an image of a particular circular domain, but my limited TikZ knowledge has made this quite challenging. I've searched for similar examples online without success. Any guidance would be greatly appreciated!
- Interesting dashed linesby Dhairya Kumar on February 10, 2026 at 10:50 am
While writing down the above expression on Overleaf, I encountered the problem of drawing the dashed line in between the Left Hand Side and the Right Hand Side expressions. Do help me in writing it exactly that way. (I had written it in my own unique way, but without the dashed line, and would be intrigued to know if such a function existed.) My code & Output: \documentclass{article} \usepackage{amsmath} \begin{document} ARCTAN TERMS: \[\boxed{\sqrt{2}\zeta_1+1 \to \infty \implies \tan^{-1}(\sqrt{2}\zeta_1+1)\rightarrow \dfrac{\pi}{2}}\text{ and } \boxed{\sqrt{2}\zeta_1+1 \rightarrow -\infty \implies \tan^{-1}(\sqrt{2}\zeta_1+1)\to \dfrac{-\pi}{2}}\] \[\boxed{\sqrt{2}\zeta_1-1 \to \infty \implies \tan^{-1}(\sqrt{2}\zeta_1-1)\rightarrow \dfrac{\pi}{2}}\text{ and } \boxed{\sqrt{2}\zeta_1-1 \rightarrow -\infty \implies \tan^{-1}(\sqrt{2}\zeta_1-1)\to \dfrac{-\pi}{2}}\] Hence, \[\text{ Arctan terms evaluates to } \frac{\sqrt{2}}{4}\left(\frac{\pi}{2}+\frac{\pi}{2}-\left(\frac{-\pi}{2}-\frac{\pi}{2}\right)\right)=\frac{\pi}{\sqrt2}\] \end{document} Output:
- 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: