[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert to pdf #341

Open
wants to merge 114 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
114 commits
Select commit Hold shift + click to select a range
c47222e
convert dbc file to TeX tables (without preamble)
erzoe Jun 4, 2021
0240173
convert produces a compilable TeX document
erzoe Jun 4, 2021
6ec8073
refactoring: document_pattern -> before_document + after_document
erzoe Jun 4, 2021
d5325eb
header
erzoe Jun 4, 2021
67086a5
right align numbers
erzoe Jun 4, 2021
0d50846
format numbers with S column
erzoe Jun 4, 2021
7b0bba4
\thead
erzoe Jun 4, 2021
782609e
bugfix: find correct alignment for last column
erzoe Jun 4, 2021
2c9ca0f
no empty cells
erzoe Jun 4, 2021
370aa5d
added column length and extra space between column groups
erzoe Jun 4, 2021
df7960a
* to highlight rows
erzoe Jun 4, 2021
92c797f
no section numbering
erzoe Jun 8, 2021
2b6770e
table of contents
erzoe Jun 8, 2021
02a65bd
convert to pdf file
erzoe Jun 8, 2021
b63f205
no overfull hboxes
erzoe Jun 8, 2021
c60fea8
added datatype to output
erzoe Jun 8, 2021
0fa54f3
reduced required width of column datatype
erzoe Jun 8, 2021
43db41e
table of contents is optional
erzoe Jun 8, 2021
45d8683
refactoring
erzoe Jun 8, 2021
801ea67
bugfix: message order
erzoe Jun 8, 2021
a751218
support different signal environments
erzoe Jun 8, 2021
dc7b0da
set name in X column if supported
erzoe Jun 8, 2021
9730659
refactoring: type=Environmet
erzoe Jun 8, 2021
a65181b
rerun LaTeX
erzoe Jun 8, 2021
37dd5a8
ltablex with \keepXColumns
erzoe Jun 8, 2021
ba4149f
show base/extended frame and DLC
erzoe Jun 8, 2021
3e0c580
header on separate line
erzoe Jun 8, 2021
1d34ff0
no empty table if a message has no signals
erzoe Jun 8, 2021
ddf7338
title
erzoe Jun 8, 2021
cef0267
header and footer
erzoe Jun 8, 2021
94c7195
allow line breaks in signal names
erzoe Jun 8, 2021
723cb05
configurable DIV
erzoe Jun 8, 2021
5e4a8d7
endianness
erzoe Jun 9, 2021
041f865
abbreviated Min and Max
erzoe Jun 9, 2021
56c7ac2
Length -> Bits
erzoe Jun 9, 2021
f9380e9
--sig-width
erzoe Jun 9, 2021
d242ddb
table header and footer at page break
erzoe Jun 9, 2021
2cac26c
support for xltabular
erzoe Jun 9, 2021
bcc24d2
--sig-pattern and --sig-none
erzoe Jun 9, 2021
7ed8087
allow line break in signal name after any lower case character
erzoe Jun 9, 2021
027a96a
improved line breaks in signal names
erzoe Jun 11, 2021
07ec885
--sig-name-before-break-character and --sig-name-after-break-character
erzoe Jun 11, 2021
45ed8a7
--sig-format \centering
erzoe Jun 11, 2021
23c5a04
center environment seems more appropriate
erzoe Jun 11, 2021
f6d17ca
--landscape
erzoe Jun 11, 2021
9816dc9
bugfix: show Environment.name in error message
erzoe Jun 11, 2021
266fb8e
\centering instead of center
erzoe Jun 17, 2021
1906c62
don't rerun TeX if an error occurred
erzoe Jun 17, 2021
e3c34e0
bugfix: measure_s_column measures decimal, not float
erzoe Jun 17, 2021
09efabc
bugfix measure_s_column: exponents
erzoe Jun 17, 2021
c9907f2
new column mux
erzoe Jun 17, 2021
8ec285e
sort signals by multiplexer id if they have the same start bit
erzoe Jun 17, 2021
b883d3a
show mux column only if the message contains multiplexed signals
erzoe Jun 17, 2021
028c872
auto generate value for --sig-pattern-mux
erzoe Jun 17, 2021
4ee47e2
get_indentation uses get_sig_pattern
erzoe Jun 17, 2021
133a386
auto append \\ to sig pattern if missing
erzoe Jun 17, 2021
78adce8
use --sig-pattern-mux for --sig-pattern if --sig-pattern is empty
erzoe Jun 17, 2021
0967543
changed default env to xltabular
erzoe Jun 17, 2021
24a2fea
Comments, allowed values and multiplexing details
erzoe Jun 17, 2021
dd7137a
signal.lsb
erzoe Jun 29, 2021
2bb0400
cantools convert --vector
erzoe Jun 29, 2021
6ca851f
make test independent of terminal size
erzoe Jun 30, 2021
5dac357
Revert "make test independent of terminal size"
erzoe Jun 30, 2021
c91b641
install gcc-8
erzoe Jun 30, 2021
d901bd0
try to install gcc-8
erzoe Jun 30, 2021
660a879
try to install clang-8
erzoe Jun 30, 2021
43f215c
print values without unit as hex
erzoe Jul 1, 2021
99d40d6
--hex arguments apply to choices to
erzoe Jul 1, 2021
deffa71
bugfix: texify allowed value labels
erzoe Jul 2, 2021
3dbf3bf
grouped TeX converter options
erzoe Jul 6, 2021
8bf87b7
added help strings for all options
erzoe Jul 6, 2021
e50210a
convert to TeX parser.description
erzoe Jul 6, 2021
5cc5140
use RawDescriptionArgumentDefaultsHelpFormatter for convert, too
erzoe Jul 6, 2021
8d411e5
help: allowed values for --env
erzoe Jul 6, 2021
a3d06a1
help: --sig-pattern and --sig-pattern-mux
erzoe Jul 6, 2021
aea0bad
readme: mention convert command
erzoe Jul 6, 2021
5a636dc
bugfix: utils_argparse.py
erzoe Jul 12, 2021
845c29c
print signed ints and floats as decimal numbers
erzoe Jul 12, 2021
1aff3e4
test: convert to TeX (choices)
erzoe Sep 9, 2021
37d7f99
\maketitle on new line
erzoe Sep 9, 2021
6ff0bdb
bugfixt test: ignore date
erzoe Sep 9, 2021
525daa7
new line at end of file
erzoe Sep 9, 2021
f3246e4
do not ignore lines but modify them to match the expectations
erzoe Sep 9, 2021
49fa680
corrected comments
erzoe Sep 9, 2021
d493dc8
no separate file for expected content
erzoe Sep 9, 2021
49821a8
check date
erzoe Sep 9, 2021
28023ad
test multiplex
erzoe Sep 9, 2021
4c2731a
separator for multiplexed and multiplexer
erzoe Sep 9, 2021
8c2d0eb
test: --vector
erzoe Sep 9, 2021
47f987c
test: --landscape
erzoe Sep 9, 2021
55f7273
test: --env tabular
erzoe Sep 9, 2021
88d1207
LaTeX installation commands for Linux
erzoe Sep 9, 2021
0083d77
Merge branch 'master' into dev-convert-to-pdf
erzoe Sep 9, 2021
f07f943
Revert "try to install clang-8"
erzoe Sep 9, 2021
0ab757b
Revert "try to install gcc-8"
erzoe Sep 9, 2021
c4834ba
Revert "install gcc-8"
erzoe Sep 9, 2021
7a6f8ca
test: comments
erzoe Sep 9, 2021
cb4e91b
test: --title
erzoe Sep 9, 2021
970aa3e
test: --date
erzoe Sep 9, 2021
8ba8ec3
test: message without signals
erzoe Sep 9, 2021
2030e2b
test: --sig-name-break-anywhere
erzoe Sep 9, 2021
4fa9145
--sig-name-break-anywhere allows breaks after numbers and upper case …
erzoe Sep 9, 2021
dd659b7
test: run LaTeX twice
erzoe Sep 10, 2021
38d1e91
test: check that pdf file is created
erzoe Sep 10, 2021
98aafa5
test: do not rerun LaTeX if an error occurs
erzoe Sep 10, 2021
2b04515
bugfix test: copy and paste error, no fixed date
erzoe Sep 10, 2021
2b46ac2
test: --msg-sort name
erzoe Sep 10, 2021
cdadcdb
test: --sig-sort name
erzoe Sep 10, 2021
551273d
added comment
erzoe Sep 14, 2021
fa5561d
fix tests for infile and outfile on windows
erzoe Sep 14, 2021
d2d05e3
removed unused function
erzoe Sep 14, 2021
9a4ae19
title: do not include directory
erzoe Sep 14, 2021
3806f3e
bugfix: no hard coding of path separators
erzoe Sep 14, 2021
d1250f0
message comment
erzoe Sep 24, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: --title
  • Loading branch information
erzoe committed Sep 9, 2021
commit cb4e91bc73cf6f5e2c0230b41d67c03ec58098ad
4 changes: 2 additions & 2 deletions tests/test_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ def test_vector(self):
def test_comments(self):
dbc = self.DBC_FILE_COMMENTS
fn_out = self.get_out_file_name(dbc)
argv = ['cantools', 'convert', '--env', 'ltablex-keep-x', dbc, fn_out]
argv = ['cantools', 'convert', '--env', 'ltablex-keep-x', '--title', 'Testing comments', dbc, fn_out]

expected_content = r'''
% !TeX program = pdflatex
Expand Down Expand Up @@ -763,7 +763,7 @@ def test_comments(self):

\KOMAoption{DIV}{12}

\title{Motohawk With Comments}
\title{Testing comments}
\date{09.09.2021}
\newcommand{\infile}{motohawk\_with\_comments.dbc}
\newcommand{\outfile}{motohawk\_with\_comments.tex}
Expand Down