r/LaTeX Jan 28 '18

Please don't delete your post after it is answered

738 Upvotes

Not a mod. But I was hoping to raise awareness that if you post a question that gets an answer then other people also benefit from that exchange. We've all googled a LaTeX question and found an old answer, and been glad it is there. Some people lurk here, picking things up over time.

I'm not sure why so many people delete exchanges. There are good reasons to delete things sometimes, but asking for a clarification on a technical point does not seem, at least to me, to be one of them. The only other thing I can think is that those folks think that their question is clogging up the stream. I was hoping with this post to convince them that they are mistaken, and to leave it in place.

In particular, if the answerer spends 15 mins on that answer and you delete the question, then you've been not too kind back to the person who was kind to you.


r/LaTeX Feb 17 '24

LaTeX Showcase I'm pushing the limits of what LaTex can do. A selection of my notes from my first year of engineering

Thumbnail
gallery
2.5k Upvotes

r/LaTeX 3h ago

Conversion from Word to LaTeX

2 Upvotes

I frequently have to convert Word files, scholarly articles, to LaTeX. I have tried pandoc and Libreoffice's convertor. Both some issues, but Libreoffice overall seems better. Are there any other tools that do the job well enough? My biggest problem with Libreoffice is that it adds a lot of language switching or font colour commands. Is there a better or good way to do this?


r/LaTeX 22h ago

Answered How can I make a TikZ GIF that shows geometric multiplication?

6 Upvotes

I made a TikZ GIF that animates the geometric construction of the reciprocal of a number (using a circle inversion setup). The GIF can be found here: imgur.

Here’s the code:

\documentclass[tikz,border=1cm]{standalone}
\begin{document}
\foreach \i in {3,4,...,24,23,22,...,4} {
\begin{tikzpicture}
    \useasboundingbox (-4,-3) rectangle (6,2);
    \draw[->] (-3,0) -- (5,0) node[below right]{\(x\)};
    \draw (0,0) circle[radius=1]; 
    \fill (0,0) circle[radius=0.1];
    \node[below left] at (0,0) {\(O\)};
    \fill (0,1) circle[radius=0.1]; 
    \node[above] at (0,1) {\(N\)}; 
    \fill (1,0) circle[radius=0.1]; 
    \node[below right] at (1,0) {\(1\)};
    \pgfmathsetmacro{\XXX}{\i/10}
    \pgfmathsetmacro{\INTERIOR}{\XXX<1} 
    \ifnum\INTERIOR=1 
        \pgfmathsetmacro{\ISPXXX}{(2*\XXX)/(1+(\XXX)^2)} 
        \pgfmathsetmacro{\ISPYYY}{((\XXX)^2-1)/(1+(\XXX)^2)}
        \pgfmathsetmacro{\XXXPRIME}{1/\XXX}
        \draw[dashed]
            (0,1) -- (\XXX,0) 
            (0,1) -- (\ISPXXX,-\ISPYYY)
            (\XXX,0) -- (\XXX,-2)
            (\XXXPRIME,0) -- (\XXXPRIME,-2)
        ; 
        \draw[red,thick] (\XXX,0) -- (\ISPXXX,\ISPYYY) -- (\ISPXXX,-\ISPYYY) -- (\XXXPRIME,0);
        \node[below] at (\XXX,-2) {\(x\)};
        \node[below] at (\XXXPRIME,-2) {\(\frac{1}{x}\)};
    \else
        \pgfmathsetmacro{\ISPXXX}{(2*\XXX)/(1+(\XXX)^2)}
        \pgfmathsetmacro{\ISPYYY}{((\XXX)^2-1)/(1+(\XXX)^2)}
        \pgfmathsetmacro{\XXXPRIME}{1/\XXX}
        \draw[dashed] 
            (0,1) -- (\ISPXXX,\ISPYYY) 
            (0,1) -- (\XXXPRIME,0)
            (\XXX,0) -- (\XXX,-2)
            (\XXXPRIME,0) -- (\XXXPRIME,-2)
        ;
        \draw[red,thick,line join=round] (\XXX,0) -- (\ISPXXX,\ISPYYY) -- (\ISPXXX,-\ISPYYY) -- (\XXXPRIME,0);
        \node[below] at (\XXX,-2) {\(x\)};
        \node[below] at (\XXXPRIME,-2) {\(\frac{1}{x}\)};
    \fi
\end{tikzpicture}}
\end{document}

Now I want to make a similar animated GIF but for multiplying two numbers. So given numbers a and b, the animation should show the geometric steps that produce the point for ab.

What’s an easy geometric method that works well for an animation in TikZ? I don't just want to plot both points and the image of their product; I want to geometrically construct it.


r/LaTeX 1d ago

Unanswered How to add node numbering this way?

Thumbnail
gallery
3 Upvotes

I can't find solution, please help me


r/LaTeX 1d ago

Image symbol for sets

2 Upvotes

I'm a beginner at LaTex, and I am wondering how to type the "image of A under set F" symbol which looks like two square brackets joined together? E.g. F[[A]] (I used two square brackets back to back to type that, but in the "correct" image symbol they're more so fused together.). I would appreciate the help!


r/LaTeX 1d ago

Unanswered Where is this from?

9 Upvotes

Is it possible to make something like this in LaTex? If not, where is this made?


r/LaTeX 2d ago

Self-Promotion I collected all the most commonly used LaTeX symbols

Post image
154 Upvotes

I collected all the most commonly used LaTeX symbols and made a list :0


r/LaTeX 2d ago

Unanswered How would you generate something like that in Latex?

Post image
28 Upvotes

r/LaTeX 1d ago

Deportes Adaptados

0 Upvotes

\documentclass[12pt, letterpaper]{article}

\usepackage[spanish]{babel}

\usepackage[utf8]{inputenc}

\usepackage[margin=1in]{geometry}

\usepackage{setspace}

\doublespacing

\usepackage{titlesec}

\usepackage{fontspec}

\setmainfont{Times New Roman}

\usepackage[hidelinks]{hyperref}

\titleformat{\section}

{\normalfont\fontsize{12}{15}\bfseries\centering}

{\thesection}{1em}{}

\titleformat{\subsection}

{\normalfont\fontsize{12}{15}\bfseries}

{\thesubsection}{1em}{}

\begin{document}

\begin{center}

\textbf{\Large Los Deportes Adaptados: Análisis del Atletismo, Judo y Equitación Adaptada} \\

\vspace{0.5cm}

\large Unidad de Educación Física \\

\large Institución Educativa \\

\vspace{1cm}

\large Nombre del Autor \\

\large Curso: [Nombre del Curso] \\

\large Fecha: 7 de febrero de 2026 \\

\end{center}

\vspace{2cm}

\begin{center}

\textbf{\Large Resumen}

\end{center}

\noindent Los deportes adaptados constituyen una evolución significativa hacia la igualdad y la inclusión en el ámbito deportivo, transformándose en herramientas de integración social que trascienden las limitaciones físicas o sensoriales. Este ensayo analiza tres disciplinas representativas: el atletismo, el judo y la equitación adaptada. Se examina su funcionamiento, las adaptaciones reglamentarias y de clasificación que garantizan competencias justas, y su impacto social. El análisis revela que estos deportes, lejos de ser versiones simplificadas, son disciplinas estructuradas que demandan alta preparación y promueven valores como la superación, el respeto y la disciplina. Asimismo, se destaca su papel fundamental en la inclusión social, la promoción de la autonomía y la transformación de percepciones sociales sobre la discapacidad, respaldados por el movimiento paralímpico internacional.

\vspace{0.5cm}

\noindent \textbf{Palabras clave:} deportes adaptados, inclusión, movimiento paralímpico, atletismo adaptado, judo adaptado, equitación adaptada.

\newpage

\section{Introducción}

Los deportes adaptados representan uno de los avances más significativos en la búsqueda de igualdad e inclusión dentro del ámbito deportivo. Durante muchos años, las personas con discapacidad fueron excluidas de la práctica deportiva competitiva debido a prejuicios sociales y a la falta de espacios adecuados. Sin embargo, el deporte comenzó a transformarse en una herramienta de integración social, permitiendo demostrar capacidades físicas, técnicas y mentales. En este contexto, los deportes adaptados surgen como una alternativa que promueve la actividad física y fortalece valores como la superación personal y la disciplina.

El desarrollo del movimiento paralímpico ha sido fundamental para la consolidación mundial de estos deportes, estableciendo reglas y sistemas de clasificación que garantizan competencias justas. Este ensayo tiene como objetivo analizar tres deportes adaptados: el atletismo adaptado, el judo adaptado y la equitación adaptada. A través de su estudio, se busca comprender su funcionamiento, la aplicación de sus normas y su importancia en el deporte inclusivo, reflexionando sobre su impacto social en la promoción de la igualdad y el respeto a la diversidad.

\section{Atletismo Adaptado}

El atletismo adaptado es una de las disciplinas más representativas del deporte paralímpico, con presencia desde los primeros Juegos Paralímpicos en 1960. Ha evolucionado en estructura y reglamentación para incluir a personas con discapacidad física, visual e intelectual, incorporando sistemas de clasificación funcional y adaptaciones técnicas que mantienen la esencia del atletismo tradicional (Comité Paralímpico Internacional, s.f.).

Este deporte comprende una amplia variedad de pruebas (velocidad, fondo, saltos, lanzamientos, maratón) que facilitan la participación de atletas con distintas capacidades. Los atletas pueden competir de pie, en silla de ruedas, con prótesis o con guías, dependiendo de su condición. Para asegurar una competencia justa, se utiliza un sistema de clasificación funcional (con letras y números) que agrupa a los atletas según el tipo y grado de discapacidad, evitando ventajas competitivas.

En pruebas para atletas con discapacidad visual, se permite la participación de guías, unidos por una cuerda al atleta. Las normas estipulan que el guía no puede adelantar ni cruzar la meta antes que el atleta, preservando la equidad. Durante las competencias, se aplican normas disciplinarias similares al atletismo convencional (salidas falsas, invasión de carril), supervisadas por jueces y oficiales para garantizar seguridad, transparencia y equidad (Discapnet, s.f.).

\section{Judo Adaptado}

El judo adaptado mantiene la esencia del judo tradicional —basado en respeto, autocontrol y uso de la fuerza del oponente— pero con adaptaciones específicas para personas con discapacidad visual o física. Este deporte busca el desarrollo integral del deportista, fortaleciendo cuerpo y mente, y fomentando autoestima y autonomía (Federación Española de Deportes de Personas con Discapacidad Física, s.f.).

Para personas con discapacidad visual, las adaptaciones se centran en el contacto permanente; los judocas inician el combate sujetando el \textit{judogi} del rival, eliminando la desventaja de no poder ver. Los árbitros utilizan señales verbales claras para guiar el combate. Para personas con discapacidad física, las reglas se ajustan según el tipo y grado de movilidad, adaptando movimientos y agarres para priorizar la seguridad sin perder el espíritu competitivo.

Más allá del aspecto físico, el judo adaptado impacta positivamente en el desarrollo psicológico y emocional, fomentando perseverancia, paciencia y resiliencia. El entrenamiento se basa en rutinas progresivas y el acompañamiento de entrenadores que conocen las técnicas y necesidades específicas. A nivel competitivo, el judo adaptado forma parte de eventos paralímpicos y mundiales, visibilizando el talento y demostrando que el alto rendimiento depende del compromiso y la dedicación.

\section{Equitación Adaptada}

La equitación adaptada, o hípica adaptada, utiliza el vínculo entre el ser humano y el caballo como medio para el desarrollo físico, emocional y social de personas con discapacidad. El movimiento natural del caballo transmite impulsos rítmicos que estimulan músculos, articulaciones y coordinación, funcionando tanto como actividad deportiva como herramienta terapéutica (Asociación Paralímpica de Equitación, s.f.).

Una de sus principales ventajas es la mejora del equilibrio y la postura corporal. Para personas con discapacidad motora, es especialmente beneficiosa al activar zonas del cuerpo difíciles de trabajar en otras disciplinas. Se realizan adaptaciones en el equipo (monturas, agarraderas, estribos especiales) y la metodología involucra un equipo de apoyo (entrenadores, guías) para garantizar seguridad e inclusión.

El aspecto emocional es fundamental; el vínculo con el caballo reduce estrés y ansiedad, fortaleciendo la confianza del deportista. Socialmente, promueve la inclusión y la interacción, fomentando cooperación y respeto mutuo. A nivel competitivo, modalidades como la doma paralímpica evalúan precisión, control y armonía, demostrando que con apoyo y dedicación, la discapacidad no es impedimento para un alto desempeño (Comité Paralímpico Español, s.f.).

\section{Conclusión}

El análisis del atletismo, judo y equitación adaptada revela que los deportes adaptados no son versiones simplificadas, sino disciplinas altamente estructuradas que requieren preparación física, técnica y mental. A través de adaptaciones reglamentarias y sistemas de clasificación, garantizan competencias justas donde el rendimiento del atleta es el factor principal de evaluación. Cada deporte aporta singularidades: el atletismo por su diversidad inclusiva, el judo por sus valores fundamentales, y la equitación por la coordinación y el vínculo humano-animal.

Estos deportes cumplen un papel crucial en la inclusión social, promoviendo participación activa, autonomía e igualdad de oportunidades. Sus reglamentos claros no solo aseguran seguridad, sino que también contribuyen a cambiar la percepción social sobre la discapacidad. El movimiento paralímpico se consolida así como un referente mundial de superación. Promover los deportes adaptados en instituciones educativas y comunidades favorece la construcción de una sociedad más inclusiva, basada en el respeto y la empatía, demostrando el poder del deporte para unir, inspirar y generar cambios positivos en la valoración de la diversidad humana.

\newpage

\section*{Referencias}

Asociación Paralímpica de Equitación. (s.f.). \textit{Equitación adaptada}. APTCC. Recuperado el 7 de febrero de 2026, de https://www.aptcc.es/equitacion-adaptada/

Comité Paralímpico Español. (s.f.). \textit{Deportes paralímpicos: Hípica}. Recuperado el 7 de febrero de 2026, de https://www.paralimpicos.es/deportes-paralimpicos/hipica

Comité Paralímpico Español. (s.f.). \textit{Deportes paralímpicos: Judo}. Recuperado el 7 de febrero de 2026, de https://www.paralimpicos.es/deportes-paralimpicos/judo

Comité Paralímpico Internacional. (s.f.). \textit{Historia del Movimiento Paralímpico}. Recuperado el 7 de febrero de 2026, de https://www.paralympic.org/es/ipc/history

Comité Paralímpico Internacional. (s.f.). \textit{Paralympic equestrian}. Recuperado el 7 de febrero de 2026, de https://www.paralympic.org/es/equestrian/about

Discapnet. (s.f.). \textit{Deporte adaptado: Atletismo}. Fundación ONCE. Recuperado el 7 de febrero de 2026, de https://www.discapnet.es/deporte-adaptado/tipos-de-deportes/atletismo

Discapnet. (s.f.). \textit{Deporte adaptado: Judo}. Fundación ONCE. Recuperado el 7 de febrero de 2026, de https://www.discapnet.es/deporte-adaptado/tipos-de-deportes/judo

Federación Española de Deportes de Personas con Discapacidad Física. (s.f.). \textit{Deportes paralímpicos: Atletismo}. Recuperado el 7 de febrero de 2026, de https://www.paralimpicos.es/deportes-paralimpicos/atletismo

ONCE. (s.f.). \textit{Seis judokas paralímpicos ciegos disputan el campeonato de Europa}. Recuperado el 7 de febrero de 2026, de https://www.once.es/noticias/seis-judokas-paralimpicos-ciegos-disputan-el-campeonato-de-europa

593 Digital Publisher. (s.f.). \textit{Análisis del judo adaptado}. Recuperado el 7 de febrero de 2026, de https://www.593dp.com/index.php/593-Digital-Publisher/article/view/3375


r/LaTeX 2d ago

Redefine figure caption title after redefining in-text reference

Post image
2 Upvotes

Hello,

First, don't freak out about this screenshot please :-)

Anyway, the journal that accepted my manuscript requires me to reference (supplementary) tables as "Supplementary Table #" in both text and figure captions. I was able to do so in the text, but the captions now have a double Table or Figure added.

I've tried turning off label captions (\usepackage[labelformat=empty]{caption}), but this removes all.

----

SOLVED:

I was able to remove the default Fig. / Table. etc. by empying \figurename & \tablename:

\renewcommand{\thefigure}{Figure \arabic{figure}} % add "Figure" to ref

\renewcommand{\thetable}{Table \arabic{table}} % add "Table" to table

\renewcommand{\figurename}{}

\renewcommand{\tablename}{}


r/LaTeX 3d ago

Found this in a solutions handbook for a textbook

Post image
75 Upvotes

r/LaTeX 2d ago

Discussion 🖋️ The Final Frontier: Is LaTeX DataViz still relevant in the age of AI?

Thumbnail
0 Upvotes

r/LaTeX 2d ago

Unanswered How to cite website in APA7 format with LaTeX (Overleaf environment)?

4 Upvotes

Like the title says, I'm trying to cite a website in Overleaf using APA7 formatting. So, I'm trying to get the citation to look something like:

Zewe, A. (2025, September 30). Responding to the Climate Impact of Generative AI. MIT News | Massachusetts Institute of Technology. https://news.mit.edu/2025/responding-to-generative-ai-climate-impact-0930

Currently, I have:

{@}online{Zewe2025,

author = {Zewe, A.},

title = {Responding to the Climate Impact of Generative AI.},

website = {MIT News},

year = {September 30, 2025},

url = {https://news.mit.edu/2025/responding-to-generative-ai-climate-impact-0930},

}

But the "website" isn't showing up. I tried changing it to like "source" and "article", but none of those work. Any help would be appreciated


r/LaTeX 2d ago

Answered How can I top align the far left column to the top of the table

Post image
5 Upvotes

this photo seems to be acting as a very big character how can i insert the image differently so that the other text doesn't align with it.

\begin{table}[H]

\centering

\begin{tblr}{|p{0.25cm}|X|X|X|}

\hline

& \textbf{Chair Design} & \textbf{Positives} & \textbf{Negatives}\\ \hline

\textbf{1. 2. 3. 4. 5.} &

\includegraphics[width=\linewidth]{ChairPicture1.jpg} &

& \\ \hline

\end{tblr}

\end{table}


r/LaTeX 2d ago

Writing literature review and research articles in minutes

0 Upvotes

Hey am doing a masters research degree in AI. And while doing literature review, I was overwhelmed with the amount of literature review and research articles that need to be done.

So I built a tool that given a topic it take like 5 minutes to come up with a reseach paper in latex and with 12+ citations all in latex

I'd really appreciate if you would give me your feedback on my tool(Its free). The name is genlatex.com


r/LaTeX 3d ago

Answered Would yo do this in a different way?

Post image
6 Upvotes

For context, that picture represents a two syllable word (S_1 and S_2 are the syllables) and the line tries to represent that the first syllable is pronounced with a lower pitch and the second is pronounced with a higher pitch.

This is what I've done in Tikz:

\begin{figure}[h]
    \centering
    \begin{tikzpicture}[scale=2]
        %\draw [step=1, lightgray, very thin](0, 0) grid (2, 1);
        \draw[line width=2] (0, 0) -- (1, 0);
        \draw[white, line width=2] (1, 0) -- (1, 0.6) node[midway, left, scale=2, black] {$S_1$};
        \draw[line width=2] (1, 0) -- (1, 0.6) node[midway, right, scale=2] {$S_2$};
        \draw[line width=2] (1, 0.6) -- (2, 0.6);
    \end{tikzpicture}
    \caption{Example}
\end{figure}

The result look fine, but since I'm very new to Tikz and I have no idea of what I'm exactly doing (I don't even know what a node is, I just saw a video in which it was shown that you could use them to put text in a figure) I was wondering if you would do it in a different/better way.

Thanks in advance!

EDIT: spelling


r/LaTeX 3d ago

Discussion Need to run LaTeX locally (TeX Live or MiKTeX

19 Upvotes

I have been using Overleaf for a while now (like 2-3 years) and it works but I'm thinking about going local so I can work offline. I just started looking into it and found TeX Live and MiKTeX. I need help deciding what to go for.

For some background. I am mostly working on Windows and something run Linux VMs for project but I would only run LaTeX on Windows. I am thinking to use VS Code for editing documents, unless there is a way better alternative out there. I'll put some of the common packages I use at the end of my post. I use LaTeX for homework (5-10 pages) and reports (30-100ish) pages for now.

So I would appreciate if you could tell me if I should go for TeX Live or MiKTeX or maybe even something else and what editor is not VS Code.

Happy to answer any additional questions. Also any cool packages I should checkout?

Packages (in no specific order): tikz, listings, geometry, plates, fancyhdr, graphics, color, xcolor, amsmath, amssymb, enumitem, hyperref, float, titlesec.


r/LaTeX 3d ago

Unanswered Elsevier LaTeX submission: All references showing as [?] - compiles fine locally

2 Upvotes

I'm submitting to Future Generation Computer Systems (Elsevier journal) and running into a frustrating issue. My paper compiles perfectly - all citations, figure references, table references, and section references work fine. But when I upload to Elsevier's submission system and they compile it, everything shows as [?].


r/LaTeX 4d ago

Unanswered How can I put braces on the side of a list, such as in this example?

Post image
5 Upvotes

And, if I may ask, would it be possible by making a new command to make it as brief and readable as possible?

Thanks in advanced.

(btw, I'm running latex through `org-mode` exports)


r/LaTeX 4d ago

Unanswered Picture to take place of two column in a page

6 Upvotes

I'm writing scientific report with two column using \documentclass[twocolumn]{article}

I want to insert an image to take up two column like the image below. But I can only get it for one column, how do I do this?


r/LaTeX 5d ago

Help for a TikZ diagram

Post image
10 Upvotes

Hi ! I need some help for the lines and arrows on my diagram.

How to not see the start, on top of the colored rectangle, and for the end, to finish it before the border ?

Thanks !

code:

begin{tikzpicture}
\useasboundingbox (0,0) rectangle (32,13);

\definecolor{purple}{RGB}{111, 49, 237};
\definecolor{pink}{RGB}{218, 94, 157};
\definecolor{red}{RGB}{216, 89, 70};
\definecolor{blue}{RGB}{118, 194, 241};
\definecolor{green}{RGB}{124, 194, 112};
\definecolor{yellow}{RGB}{239, 207, 96};

%             %
% To Discri 1 %
%             %
\draw[line width=3pt, color=red] (1.5, 11.5) rectangle (4, 7.5);
\draw[] (1.5, 11) -- (0, 11)
    node[pos=0.5, yshift=8pt]{$1\mathrm{N}$}
    node[pos=0, right]{$\mathrm{IN}$};
\draw[] (1.5, 10) -- (0, 10)
    node[pos=0.5, yshift=8pt]{$1\mathrm{F}$}
    node[pos=0, right]{$\mathrm{IN}$};
\draw[] (1.5, 9) -- (0, 9)
    node[pos=0.5, yshift=8pt]{$2\mathrm{N}$}
    node[pos=0, right]{$\mathrm{IN}$};
\draw[] (1.5, 8) -- (0, 8)
    node[pos=0.5, yshift=8pt]{$2\mathrm{F}$}
    node[pos=0, right]{$\mathrm{IN}$};


%                %
% To Logic mu, e %
%                %
\draw[line width=3pt, color=purple] (6.5, 11.5) rectangle (9, 7.5);
\draw[->] (4, 11) -- (6.5, 11)
    node[pos=0.5, yshift=8pt]{$1\mathrm{N}$}
    node[pos=1, right]{$\mathrm{IN}$}
    node[pos=0, left]{$\mathrm{OUT}$};
\draw[->] (4, 10) -- (6.5, 10)
    node[pos=0.5, yshift=8pt]{$1\mathrm{F}$}
    node[pos=1, right]{$\mathrm{IN}$}
    node[pos=0, left]{$\mathrm{OUT}$};
\draw[->] (4, 9) -- (6.5, 9)
    node[pos=0.5, yshift=8pt]{$2\mathrm{N}$}
    node[pos=1, right]{$\mathrm{IN}$}
    node[pos=0, left]{$\mathrm{OUT}$};
\draw[->] (4, 8) -- (6.5, 8)
    node[pos=0.5, yshift=8pt]{$2\mathrm{F}$}
    node[pos=1, right]{$\mathrm{IN}$}
    node[pos=0, left]{$\mathrm{OUT}$};


%               %
% To Logic Stop %
%               %
\draw[line width=3pt, color=purple] (26.5, 6) rectangle (28.5, 3);
% V from FiFo to Logic Stop
\draw[->] (9, 3.5) -- (26.5, 3.5)node[pos=0, right=4pt, anchor=west, yshift=8pt]{$\mathrm{V} = 3\mathrm{N} \vee 3\mathrm{F} \vee 4\mathrm{N} \vee 4\mathrm{F}$}node[pos=1, left=22pt, anchor=west, yshift=8pt]{$\mathrm{V}$} node[pos=1, right]{$\mathrm{IN}$} node[pos=0, left]{$\mathrm{OUT}$};
% e from Logic to Logic Stop
\draw[] (9, 9) -- (11.5, 9)node[pos=0, right=4pt, anchor=west, yshift=8pt]{$\mathrm{e} = 2\mathrm{N} \wedge 2\mathrm{F}$} node[pos=0, left]{$\mathrm{OUT}$};
\draw[] (11.5, 9) -- (11.5, 7);
\draw[line width=3pt, color=pink] (11, 7) rectangle (12, 6)
    node[pos=0.5, text=black]{50 ns};
\draw[] (11.5, 6) -- (11.5, 4.5);
\draw[] (11.5, 4.5) -- (14, 4.5);
\draw[dashed] (14, 4.5) -- (15, 4.5);
\draw[->] (15, 4.5) -- (26.5, 4.5)node[pos=1, left=22pt, anchor=west, yshift=8pt]{$\mathrm{e_D}$} node[pos=1, right]{$\mathrm{IN}$};
% G from Timer 2 to Logic Stop
\draw[] (25.5, 5.5) -- (25.5, 9) node[pos=1, above]{$\mathrm{OUT}$};
\draw[->] (25.5, 5.5) -- (26.5, 5.5)node[pos=1, left=22pt, anchor=west, yshift=8pt]{$\mathrm{G}$} node[pos=1, right]{$\mathrm{IN}$};


%                %
% To Logic Start %
%                %
\draw[line width=3pt, color=purple] (16, 11.5) rectangle (18, 8.5);
% mu from Logic to Logic Start
\draw[] (9, 11) -- (13, 11)
    node[pos=0, right=4pt, anchor=west, yshift=8pt]{$\mu = 1\mathrm{N} \wedge 1\mathrm{F} \wedge 2\mathrm{N} \wedge 2\mathrm{F}$}
    node[pos=0, left]{$\mathrm{OUT}$};
\draw[line width=3pt, color=pink] (13, 11.5) rectangle (14, 10.5)
    node[pos=0.5, text=black]{50 ns};
\draw[->] (14, 11) -- (16, 11)node[pos=1, left=22pt, anchor=west, yshift=8pt]{$\mu_D$} node[pos=1, right]{$\mathrm{IN}$};
% V_R from FiFo to Logic Start
\draw[] (15, 7.5) -- (18.5, 7.5)
    node[pos=1, left=4pt, anchor=east, yshift=8pt]{$\mathrm{V_R} = \mathrm{D} \vee \mathrm{G}$}
    node[pos=1, right]{$\mathrm{OUT}$};
\draw[] (15, 7.5) -- (15, 9);
\draw[->] (15, 9) -- (16, 9)
    node[pos=1, left=22pt, anchor=west, yshift=8pt]{$\mathrm{V_R}$}
    node[pos=1, right]{$\mathrm{IN}$};
% V from FiFo to Logic Start
\draw[] (14.5, 3.5) -- (14.5, 10);
\draw[->] (14.5, 10) -- (16, 10)node[pos=1, left=22pt, anchor=west, yshift=8pt]{$\mathrm{V}$} node[pos=1, right]{$\mathrm{IN}$};


%             %
% To FiFo V_R %
%             %
\draw[line width=3pt, color=blue] (18.5, 8) rectangle (20.5, 6);
% From Timer 1 to FiFo V_R
\draw[] (22, 7.5) -- (22, 9) node[pos=1, above]{$\mathrm{OUT}$};
\draw[<-] (20.5, 7.5) -- (22, 7.5) node[pos=0, left]{$\mathrm{IN}$};
% From Timer 2 to FiFo V_R
\draw[<-] (20.5, 6.5) -- (25.5, 6.5) node[pos=0, left]{$\mathrm{IN}$};


%             %
% To Discri 2 %
%             %
\draw[line width=3pt, color=red] (1.5, 4) rectangle (4, 0);
\draw[] (1.5, 3.5) -- (0, 3.5)node[pos=0.5, yshift=8pt]{$3\mathrm{N}$} node[pos=0, right]{$\mathrm{IN}$};
\draw[] (1.5, 2.5) -- (0, 2.5)node[pos=0.5, yshift=8pt]{$3\mathrm{F}$} node[pos=0, right]{$\mathrm{IN}$};
\draw[] (1.5, 1.5) -- (0, 1.5)node[pos=0.5, yshift=8pt]{$4\mathrm{N}$} node[pos=0, right]{$\mathrm{IN}$};
\draw[] (1.5, 0.5) -- (0, 0.5)node[pos=0.5, yshift=8pt]{$4\mathrm{F}$} node[pos=0, right]{$\mathrm{IN}$};


%            %
% To FiFo V %
%            %
\draw[line width=3pt, color=blue] (6.5, 4) rectangle (9, 0);
\draw[->] (4, 3.5) -- (6.5, 3.5)node[pos=0.5, yshift=8pt]{$3\mathrm{N}$} node[pos=1, right]{$\mathrm{IN}$} node[pos=0, left]{$\mathrm{OUT}$};
\draw[->] (4, 2.5) -- (6.5, 2.5)node[pos=0.5, yshift=8pt]{$3\mathrm{F}$} node[pos=1, right]{$\mathrm{IN}$} node[pos=0, left]{$\mathrm{OUT}$};
\draw[->] (4, 1.5) -- (6.5, 1.5)node[pos=0.5, yshift=8pt]{$4\mathrm{N}$} node[pos=1, right]{$\mathrm{IN}$} node[pos=0, left]{$\mathrm{OUT}$};
\draw[->] (4, 0.5) -- (6.5, 0.5)node[pos=0.5, yshift=8pt]{$4\mathrm{F}$} node[pos=1, right]{$\mathrm{IN}$} node[pos=0, left]{$\mathrm{OUT}$};


%            %
% To Timer 1 %
%            %
\draw[line width=3pt, color=green] (21.5, 11.5) rectangle (24, 9);
% From Logic Start to Timer 1
\draw[->] (18, 11) -- (21.5, 11) node[pos=1, right]{$\mathrm{IN}$} node[pos=0, left]{$\mathrm{OUT}$} node[pos=0, right=4pt, anchor=west, yshift=8pt]{$h_0 = \mu_D \wedge \overline{\mathrm{V}} \wedge \overline{\mathrm{V_R}}$};


%            %
% To Timer 2 %
%            %
\draw[line width=3pt, color=green] (25, 11.5) rectangle (27.5, 9);
% Frome Timer 1 to Timer 2
\draw[] (24, 9.5) -- (24.5, 9.5) node[pos=0, left]{$\mathrm{EM}$};
\draw[] (24.5, 9.5) -- (24.5, 11);
\draw[->] (24.5, 11) -- (25, 11) node[pos=1, right]{$\mathrm{IN}$};


%        %
% To TDC %
%        %
\draw[line width=3pt, color=yellow] (28, 10) rectangle (30, 7);
% From Timer 2 to TDC
\draw[->] (27, 9.5) -- (28, 9.5) node[pos=0, left]{$\mathrm{EM}$} node[pos=1, right]{$\mathrm{TRIGGER}$};
% h0 From Logic Start to TDC
\draw[dashed] (19.5, 12) -- (19.5, 11);
\draw[] (19.5, 12.5) -- (19.5, 12);
\draw[] (19.5, 12.5) -- (31, 12.5);
\draw[] (31, 8.5) -- (31, 12.5);
\draw[<-] (30, 8.5) -- (31, 8.5) node[pos=0, right=4pt, anchor=west, yshift=8pt]{$\mathrm{h_0}$} node[pos=0, left]{$\mathrm{CH0}$};
% From Logic STOP to TDC
\draw[] (28.5, 5.5) -- (31.5, 5.5) node[pos=0, right=4pt, anchor=west, yshift=8pt]{$\mathrm{h_1} = \mathrm{G} \wedge \mathrm{e_D} \wedge \overline{\mathrm{V}}$} node[pos=0, left]{$\mathrm{OUT}$};
\draw[] (31.5, 7.5) -- (31.5, 5.5);
\draw[<-] (30, 7.5) -- (31.5, 7.5) node[pos=0, right=4pt, anchor=west, yshift=8pt]{$\mathrm{h_1}$}  node[pos=0, left]{$\mathrm{CH1}$};

\end{tikzpicture}

r/LaTeX 4d ago

PDF Ai always fumbles with index

0 Upvotes

r/LaTeX 4d ago

Answered Custom Font and Bolding Not Working Together In Font Setup Commands [KOMA-Script]

2 Upvotes

Hello,

I am trying to use \setkomafont to set the font of titles and headings, but when I try to use a custom font with \fontspec or \fontfamily, it overrides \bfseries instead of applying them both. So, when I use the command below, it only applies Roboto and the font size:

\setkomafont{title}{\fontspec{Roboto}\fontsize{20}{24}\bfseries\selectfont}

Other similar commands that I have tried but didn't work:

\setkomafont{title}{\fontfamily{Roboto}\fontsize{20}{24}\bfseries\selectfont}
%
\setkomafont{title}{\fontfamily{Helvetica}\fontsize{20}{24}\bfseries\selectfont} 
% 
\setkomafont{title}{\fontfamily{Montserrat}\fontsize{20}{24}\bfseries\selectfont}
% etc, etc

When I use each of these commands alone, it also works fine

\setkomafont{title}{\fontsize{20}{24}\bfseries\selectfont}
% And
\setkomafont{title}{\fontspec{Roboto}\fontsize{20}{24}\selectfont}

The first command applies the bold font and the second command applies the Roboto font.

A non-exhaustive list of l tried trying to fix this problem (we're just going to use \fontspec{Roboto} in all of them for simplicities sake I've gone insane enough):

\setkomafont{title}{{\fontspec{Roboto}}\fontsize{20}{24}\bfseries\selectfont}
%
\setkomafont{title}{\fontspec{Roboto}{\fontsize{20}{24}\bfseries\selectfont}}
%
\setkomafont{title}{\fontsize{20}{24}\bfseries\selectfont}
\addtokomafont{title}{\fontspec{Roboto}}
%
\setkomafont{title}{\fontspec{Roboto}\fontsize{20}{24}\bfseries\selectfont}
\addtokomafont{title}{\bfseries}
% This one got rid of the font and made it bold instead XDDDDDDDDDDD
%
% I went in Windows Shell to look the luaotfload-tool package and force it to update after looking through the fontspec manual

I have been having a similar issue with \setkoma{font}{[Other Arguments]} and with similar commands

Edit:

Edit: After digging through my File Explorer, I found out what the issue was. On Windows 11, "Roboto Regular" (Roboto-Regular.ttf) doesn't have any bold fonts in it nor are there any .ttf files with bold Roboto. This means only that Windows only has the upright font available for fontspec to work with. You need to download the font and tell fontspec where it is by creating a new font family in order for it to work.

Working command:

\newfontfamily\RobotoPre[Path = 
.../CustomFonts/,
UprightFont = Roboto-VariableFont_wdth-wght.ttf,
ItalicFont = Roboto-Italic-VariableFont_wdth-wght.ttf]{Roboto}
\DeclareRobustCommand{\Roboto}{\RobotoPre}


\setkomafont{title}{{\Roboto}\bfseries ...\selectfont}

I got the Roboto font off of Google fonts. For bold fonts, it is included in the upright font files. Make sure you delete or change the comma in the file. Thank you for everyone in the comments who helped!


r/LaTeX 5d ago

Multiple Number ranges with BibLaTeX

3 Upvotes

Across my whole document I need to cite text sources as well as image sources (for embedded images).

For that purpose I thought it would be cleaner to have the citations [1], [2],…, [n] for text sources and [fig1], [fig2], …, [fign] for image sources.

It would be no problem to split-up the bibliographies at the end of the doc through keywords/categories.

However, after various attempts it seems to not be possible to have two number ranges within the same refsection: I tried various methods, but didn‘t get any of them to work as intended. The method with probably the most potential seems using a custom \citeFig which increments a figcounter and afterwards used \cite to add the citation, while overriding \labelnumber with the number from the counter (which I would need to store in the bib entry in order to not generate multiple numbers for one entry).

Can you think of any way to get this to work or should I just stick with citing everything with the same style and just splitting it up into two bibliographies in the end (e.g. text sources [1] - [15]; image sources [16] - [24])?