Skip to main content

Questions tagged [code-review]

{code-review} asks for a review or possible improvement of the code used to create some output (typically a {diagram} or some structured format like a {title-page}).

4 votes
0 answers
186 views

One of the issues I have with ams alignment environments is that they use "cells" which change in size to fit their content. This is required for all cells which are used for alignment, but ...
Tohiko's user avatar
  • 1,961
3 votes
0 answers
80 views

Note that I just got this to minimally work, so do not take the claims below without a spade or so of salt.1 In particular, 'works' is employed in a sense likely to deviate significantly from ordinary ...
cfr's user avatar
  • 248k
4 votes
0 answers
73 views

This is sort of a code review question. I wrote a macro \backbelow to insert "background" material after the previous line. This can be used to wrap the text around a figure without wrapfig ...
Alexey's user avatar
  • 2,383
0 votes
1 answer
347 views

So, I'm stuck on this drawing: I have to draw two planes of equations x+y+z = 2 and x+y-z = 1, highlighting the line obtained by their intersection. This is what I wrote so far. I'm not happy, it ...
EXVII's user avatar
  • 477
0 votes
1 answer
75 views

Consider this wrapper as an example: \prg_new_conditional:Nnn \check_engine:n{p,T,F,TF}{ \tl_trim_spaces_apply:nN{#1}\__check_engine:n } \cs_new:Npn \__check_engine:n #1{ \bool_lazy_any:nTF{ ...
Vincent's user avatar
  • 6,225
2 votes
1 answer
154 views

I am trying to implement a function in LaTeX3 \check_if_fp:n that checks if an input can be parsed as a floating-point number (in an expandable way, so not using regexes). After a lot of thinking I ...
Vincent's user avatar
  • 6,225
2 votes
0 answers
147 views

Further to my previous question regarding a package I am developing and in which I failed miserably to communicate some of the concepts clearly, here is what I am trying to achieve. The package is to ...
yannisl's user avatar
  • 122k
0 votes
0 answers
74 views

Consider the following code, which is an extract from a much longer code, which I tried to reduce to a more reasonable size. What it does? The code provides a package, that overwrites the chapter ...
yannisl's user avatar
  • 122k
3 votes
3 answers
375 views

Consider the code in LaTeX3. It tests whether a string is a hexadecimal string (optionally also testing the length of that string) (a string where every character is either 0-9 or A-F). \documentclass[...
Vincent's user avatar
  • 6,225
13 votes
2 answers
389 views

I have a pretty big template of packages/classes for multiple different document types. Some of the users sometimes complain that the compile times are soooo long. However, to find the bottlenecks of ...
Wulle's user avatar
  • 1,244
0 votes
1 answer
112 views

My code: \documentclass{article} \usepackage[british]{babel} \usepackage[style=authoryear]{biblatex} \addbibresource{biblatex-examples.bib} \begin{document} Read \textcite{sarfraz}. Read \textcite{...
Lone Learner's user avatar
  • 3,507
0 votes
0 answers
77 views

I'm still newbie latex user, so I need help from advanced users to figure out in macros restrictions and their pitfalls Prerequisites: I need to extract filename from its path, and I found this ...
Avatar Mod's user avatar
1 vote
1 answer
2k views

I have been working on a personal template for preparing my papers in case some journal don't have one. In the way, I found the easyReview package and the commands \setreviewsoff or \setreviewson ...
Vladimir Heredia's user avatar
1 vote
1 answer
82 views

Before I proceed to write a lot of solutions, I want to adopt a style that I will use consistently in my document. So far I write a solution of an equation as follows. Could you review this ? Any ...
Display Name's user avatar
  • 49.7k
0 votes
1 answer
132 views

I wanted to do simple thing. Change each \section to \cprotect\section in the whole document. I could not figure out how to do it using latex macro. So I used lua I'd like to ask if you think this ...
Nasser's user avatar
  • 21.9k

15 30 50 per page