3.38.1 Top new questions this week

3.38.1.1 How to do mathematical programming in LaTeX?
3.38.1.2 Problem using length operator in Lua
3.38.1.3 Enumeration in powers of 2
3.38.1.4 How to draw images in Latex?
3.38.1.5 How to typeset ancient Persian scripts in LaTeX
3.38.1.6 A \def syntax problem
3.38.1.7 Align centered math-blocks
3.38.1.1 How to do mathematical programming in LaTeX?

https://tex.stackexchange.com/questions/397234/how-to-do-mathematical-programming-in-latex

I typically write my programs in Matlab and then port the picture into LaTeX. At times it appears that one has better efficiency or  flexibility to have the program within LaTeX itself, either you  ...
 

- asked by Maesumi (31 votes), answered by student (49 votes)

3.38.1.2 Problem using length operator in Lua

https://tex.stackexchange.com/questions/397900/problem-using-length-operator-in-lua

This is my MWE: 
\documentclass{article} 
\newcommand{\printdata}{% 
\directlua{ 
data = {"a", "b", "c"} 
for i = 1, #data do 
tex.print(data[i]) 
end 
} 
} 
\begin{document} 
...
 

- asked by NVaughan (12 votes), answered by ShreevatsaR (14 votes)

3.38.1.3 Enumeration in powers of 2

https://tex.stackexchange.com/questions/397967/enumeration-in-powers-of-2

I would like to enumerate a list, but instead of the standard numbering 
1. bar 
2. bar 
3. bar 
4. bar 
5. bar 
I would like the labels to be powers of 2 (automatically generated): 
1. bar 
2. bar 
...
 

- asked by geekformoney (10 votes), answered by TorbjA~,rn T. (13 votes)

3.38.1.4 How to draw images in Latex?

https://tex.stackexchange.com/questions/397528/how-to-draw-images-in-latex

I'm trying to draw the following picture in LaTeX but I'm having trouble understanding what I should use. I've seen a few examples, but it's hard to adapt them into what I'm looking for. 
If you  ...
 

- asked by Hel (10 votes), answered by Roboticist (13 votes)

3.38.1.5 How to typeset ancient Persian scripts in LaTeX

https://tex.stackexchange.com/questions/397080/how-to-typeset-ancient-persian-scripts-in-latex

This is a simple word in Achaemenidian script (ancient Persian language) that is typeset by Parsoomash font in MS Word: 
Is there any LaTeX package to typeset stuffs like this?
 

- asked by Roboticist (9 votes), answered by egreg (16 votes)

3.38.1.6 A \def syntax problem

https://tex.stackexchange.com/questions/398023/a-def-syntax-problem

I want to compute a time difference. 
For example: 
22:44 - 22:50 -> 00:10 
23:00 - 00:10 -> 01:10 
In the second case, the time is implicitly about the following day. 
My idea is: 
Convert the  ...
 

- asked by Joseph Marie (7 votes), answered by David Carlisle (9 votes)

3.38.1.7 Align centered math-blocks

https://tex.stackexchange.com/questions/398070/align-centered-math-blocks

How can I align multiple math blocks, such that each block is centered. 
In my example the 1 should be printed centered above the 11 and so on. 
I guess this can be done with minipages, but I believe  ...
 

- asked by Ben (6 votes), answered by Mico (4 votes)