Skip to content

Commit 1159d34

Browse files
committed
Use id for lines table instead of counter
1 parent fdec466 commit 1159d34

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/LatexPrinter.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,11 @@ void LatexPrinter::generateLinesTable(unsigned int geometry_dimension,
9191
json data;
9292
data["pointsTypeNumber"] = points_type_number;
9393

94+
int counter = Config::COUNT_FROM;
9495
std::vector<json> lines_info;
9596
for(const segre::VeldkampLineTableEntry& entry : geometry_lin_table){
9697
json line_info;
98+
line_info["id"] = std::to_string(counter++);
9799
line_info["isProjective"] = entry.isProjective;
98100
line_info["core"]["points"] = entry.coreNbrPoints;
99101
line_info["core"]["lines"] = entry.coreNbrLines;

templates/tables/lines_table.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
\hline
2828
\hline
2929
<* for line in lines *>
30-
<<count(index)>> & <<line/isProjective>> & <<line/core/points>> & <<line/core/lines>> & <* for val in line/pointsType *> <<val>> & <* endfor *><<line/cardinal>>\\
30+
<<line/id>> & <<line/isProjective>> & <<line/core/points>> & <<line/core/lines>> & <* for val in line/pointsType *> <<val>> & <* endfor *><<line/cardinal>>\\
3131
\hline
3232
<* endfor *>
3333
\end{tabular}

0 commit comments

Comments
 (0)