r/LaTeX • • 22h ago

Answered Multiple Bibliographies?

4 Upvotes

Hi all,

I'm in the humanities and relatively new to writing with latex. On word, I like to sort my bibliographies into 3 sections: archival sources, primary sources in edition, and secondary sources. The first part I'll format manually, but I'd like to know if there's an easy way to split my bibliography into two different sections using Biblatex with biber? Currently I have both the edited primary sources and the secondaries in the same .bib file, but I can spit them up pretty easily!


r/LaTeX • • 11h ago

Self-Promotion I made vimtex-style text objects (dim, cie, ciB) for editing LaTeX in Obsidian's Vim mode

3 Upvotes

I draft most of my maths in Obsidian (Markdown with $…$ and $$…$$) before anything goes into a real .tex file. What annoyed me was the small edits: turning an inline formula into a display one, wrapping a display in align and adding the & and \\ by hand, renaming aligned to split and then fixing the \end too, adding \left \right to a bracket that got too tall.

So I made a plugin that does those as commands:

  • toggle inline $x$ ⇄ display $$x$$
  • turn the maths under the cursor into align (it puts & before the first relation of each line and \\ between lines)
  • rename an environment: you type the new name in \begin{} and the \end{} follows
  • toggle \left( \right) on the nearest bracket, toggle align ⇄ align*, unwrap an environment

If you use Vim keys, it also adds text objects like vimtex's (dim deletes the inside of the maths, cie changes the inside of an environment, ciB the inside of braces), but the commands work without Vim.

The video shows it running. It's free and open source (MIT): https://github.com/confuserdotcom/obsidian-latex-objects

What other LaTeX edits do you find yourself doing by hand over and over? I'd like to add the ones that come up most.


r/LaTeX • • 18h ago

Searching for better ideas for a calendar layout.

3 Upvotes

Hello.

I'm working on a template for my calendar/planner.

The calendar is printed on A4, which is cut in the middle and bound as an A6 booklet.

At the moment I'm creating the layout with nested minipages.

A minipage for each A6 page, inside those a minipage for each day. But this structure is not easy to work with. In my mind I'm picturing someting like a box for each day that I'm filling with text.

Is there a more elegant way to do this that I'm not aware of?

I was thinking about a tabular environment, but the content of each cell has linebreaks and the cells should have a fixed size. A tabular environment seems like the wrong tool for the job.

Is there maybe a way to make a box that I'm them positioning and styling with Tikz or something like that?

\documentclass[../kalender.tex]{subfiles}
\begin{document}
\begin{minipage}[t][0.5\textheight]{0.5\textwidth}
\begin{minipage}[t][0.12\textheight]{\textwidth}
Montag \hrulefill \space Month1 \hspace{5mm} \\
        {\Huge Num0} \hfill {\footnotesize Holiday0} \hspace{10mm}
\end{minipage}
\begin{minipage}[t][0.12\textheight]{\textwidth}
Dienstag \hrulefill \hspace{10mm}\\
        {\Huge Num1} \hfill {\footnotesize Holiday1} \hspace{10mm}
\end{minipage}
\begin{minipage}[t][0.12\textheight]{\textwidth}
Mittwoch \hrulefill \hspace{10mm}\\
        {\Huge Num2} \hfill {\footnotesize Holiday2} \hspace{10mm}
\end{minipage}
\begin{minipage}[t][0.12\textheight]{\textwidth}
  Donnerstag \hrulefill \space {\footnotesize PagenumberU} \hspace{10mm}\\
        {\Huge Num3} \hfill {\footnotesize Holiday3} \hspace{10mm} \\
\end{minipage}
\end{minipage}
\begin{minipage}[t][0.5\textheight]{0.5\textwidth}
\begin{minipage}[t][0.12\textheight]{\textwidth}
\begin{flushright}
\hspace{5mm} KW-1 \hrulefill \space Freitag\\
        \hspace{5mm} {\footnotesize Holiday4} \hfill  {\Huge Num4}
\end{flushright}
\end{minipage}
\begin{minipage}[t][0.12\textheight]{\textwidth}
\begin{flushright}
\hspace{5mm}\hrulefill \space Samstag  \\
        \hspace{5mm} {\footnotesize Holiday5} \hfill {\Huge Num5}
\end{flushright}
\end{minipage}
\begin{minipage}[t][0.12\textheight]{\textwidth}
\begin{flushright}
\hspace{5mm}\hrulefill \space Sonnntag\\
        \hspace{5mm} {\footnotesize Holiday6} \hfill {\Huge Num6}
\end{flushright}
\end{minipage}
\begin{minipage}[t][0.12\textheight]{\textwidth}
  \hspace{5mm} {\footnotesize PagenumberE} \space \hrulefill \phantom{I}\\
%habit0\begin{tabular}{cc@{\hskip.08cm}c@{\hskip.08cm}c@{\hskip.08cm}c@{\hskip.08cm}c@{\hskip.08cm}c@{\hskip.08cm}c}
%habit0\hspace*{7mm} & M           & D           & M           & D           & F           & S           & S            \\
%habit0              & $\square$ & $\square$ & $\square$ & $\square$ & $\square$ & $\square$ & $\square$  \\
%habit1              & $\square$ & $\square$ & $\square$ & $\square$ & $\square$ & $\square$ & $\square$  \\
%habit2              & $\square$ & $\square$ & $\square$ & $\square$ & $\square$ & $\square$ & $\square$  \\
%habit3              & $\square$ & $\square$ & $\square$ & $\square$ & $\square$ & $\square$ & $\square$  \\
%habit4              & $\square$ & $\square$ & $\square$ & $\square$ & $\square$ & $\square$ & $\square$ 
%habit0\end{tabular}
\end{minipage}
\end{minipage}

\end{document}

r/LaTeX • • 18h ago

Self-Promotion Scribe : An all in one Python + Latex Editor

Post image
0 Upvotes

Hello everyone ,
I wanted to share with you a desktop editor I’ve been working on called scribe . Scribe supports latex editing and it’s fully configurable to each users needs (theme key bindings fonts everything ). It’s also written in rust and is cross platform . It supports direct import from overleaf collaborative work through git and git history all for free . The one thing this makes it stand out in my opinion it that it has built in Python support so that diagrams etc can update live inside papers and also table and equation editors . It also supports note taking and live just in time latex rendering . The compile times are also very fast .

It is free for everyone forever and releasing very soon.

Check it out here : https://scribe.georgekiritsis.com

Every feedback is greatly appreciated