Skip to main content

Questions tagged [best-practices]

A "best practice" is a technique or approach that TeXnicians recognize as giving better results than other approaches.

1 vote
0 answers
36 views

In a multiline equation, how to align from the right in a second-level split?

I have a long equation, where I want to divide the expression into 4 parts, 2 of which are & aligned, and the other two are child to the former, and should be aligned from the right. I am nesting ...
Donn's user avatar
  • 11
14 votes
2 answers
2k views

Is it bad style to write x^2, 2^\frac{1}{2} and 2^\sqrt{2}?

Is it considered bad style to write: x^2, 2^\frac{1}{2} and 2^\sqrt{2} (without curly brackets around the superscript) instead of: x^{2}, 2^{\frac{1}{2}} and 2^{\sqrt{2}}? The same for subscripts.
David Scherfgen's user avatar
0 votes
0 answers
46 views

BibLaTex - Reference format for multiple ISSNs (print + digital)

What is the best / standard approach to creating a bibilography entry for a journal with print and digital editions (with an ISSN, and eISSN number, respectively). Should I create a new field for ...
Not Dr Jeff's user avatar
5 votes
3 answers
415 views

Treatment of expl3 variables - registers versus macros

In expl3 some variables are implemented as TeX registers (dim, skip, muskip, int) while others are implemented as macros (tl, str, clist, fp, bitset, etc.) (Relevant: interface3.pdf section "...
User23456234's user avatar
  • 1,888
1 vote
0 answers
52 views

Good practises for writing equation-heavy thesis in LaTeX

I'm starting to write my PhD thesis in LaTeX using the yathesis documentclass for french thesis. I will write lots of equations, with many different symbols and I like the idea of referencing them ...
mayonnaise's user avatar
0 votes
0 answers
40 views

Leave blank lines in expl3 packages for better code clarity

Leaving empty lines in the code of a package is usually not recommended. But for packages written with expl3 new lines, as spaces, are ignored. So, could blank lines be safety used to aerate the code ...
jlab's user avatar
  • 3,986
1 vote
1 answer
115 views

What should go into file.def and what into file.bbx?

My biblatex styles bundle consists of a standard.bbx file and some .bbx, .cbx, .dbx and .lbx files (the bundle provides different citation styles; therefore standard.bbx contains common code of the ...
matteofg's user avatar
  • 175
1 vote
1 answer
107 views

Braces in l3keys

In many cases, the braces surrounding values to keys in l3keys are omitted when defining keys, even when the keys themselves have n-,c-, or e-type arguments, which normally require braced arguments. ...
User23456234's user avatar
  • 1,888
3 votes
0 answers
131 views

Best practices for setting package options mid-document

I am currently working on a package where the user can set the package options mid-document or within a local group. Currently, the user can do this via the user commands \set<package>keys or \...
User23456234's user avatar
  • 1,888
3 votes
1 answer
149 views

"Label multiply defined" with new cross-referencing properties

When recording multiple different properties (see texdoc ltproperties-doc or online) for the same label, warnings are issued. I am not able to record all properties at the same time (some must be ...
meide's user avatar
  • 1,175
4 votes
1 answer
116 views

Using the new cross-referencing properties

I'm looking into the new property system (see texdoc ltproperties-doc or online) but have an issue when referencing unknown labels. \NeedsTeXFormat{LaTeX2e}[2023/11/01] \documentclass{article} \begin{...
meide's user avatar
  • 1,175
11 votes
2 answers
579 views

Why are these sentences in Libertine so cramped and what can I do about it?

Recently I was writing a document in LaTeX using Linux Libertine. Overall I love this font, but I found a strange case of italicized text where there is almost no space between the word of and a ...
user134824's user avatar
5 votes
1 answer
292 views

When should we use \cs_new...nopar?

I ask about some of the best practices for programming expl3 code. Section 4 of interface3.pdf describes functions that define new control sequences that prohibit \par in their function parameters (#1,...
User23456234's user avatar
  • 1,888
0 votes
1 answer
91 views

best practise when combining standalone tex-files with latxmk

I am currently not sure how to best define my workflow and would like some advice on how to best proceed. Maybe I am just overlooking something obvious. Assuming the following tinker.tex file: \...
Cube707's user avatar
  • 404
1 vote
1 answer
54 views

What is the correct/best way to control the optional arguments of an environment so they can be easily edited later

Edit: I would like to know what the best practice is for creating a method to edit the desired optional arguments of all instances of an environment from one location. Motivation: So I'm using minted ...
GBR6000's user avatar
  • 56

15 30 50 per page
1
2 3 4 5
51