Commit graph

111 commits

Author SHA1 Message Date
09bfa89dfe let macros indicate if their replacement is done directly -> useful for singleLine macros 2022-02-17 21:13:27 +01:00
e1a663e301 fix wrong constant 2022-02-17 20:52:56 +01:00
adb168d453 add formatter macros for \begin{macrocode} 2022-02-17 20:46:39 +01:00
205dc4eeac reformat file 2022-02-17 20:38:25 +01:00
94640f9eff implement first version of dtx formatter 2022-02-17 20:38:04 +01:00
add194ce62 adjust INS_FILE 2022-02-17 20:37:52 +01:00
87666fbec6 move close output stream method to tex formatter 2022-02-17 20:37:38 +01:00
e4de1ceb7f add meta mode to formatter 2022-02-17 20:37:00 +01:00
92be6e446c better default for docstrip guards 2022-02-17 20:14:50 +01:00
ed004aaf33 add _get_provides_text method 2022-02-17 20:05:18 +01:00
f7575ccd0c add driver and ins file generics 2022-02-17 20:03:21 +01:00
edacb9615c add tex outtype to config 2022-02-17 20:03:00 +01:00
6181704a8d fix writing repo status info to json file 2022-02-09 21:51:09 +01:00
f1dbc45f9c lots of default macros 2022-02-09 21:11:46 +01:00
a50c4935be correct header for expl3 2022-02-09 20:00:21 +01:00
8e115b46c2 add header to simple tex formatter 2022-02-09 19:50:49 +01:00
e760eaef6d implement config begin and end macros to drop config at beginning of file 2022-02-09 19:39:27 +01:00
12a89f9560 add mode to tex formatters 2022-02-09 19:25:25 +01:00
e84030978c read in FormattingConfig correctly 2022-02-09 19:14:00 +01:00
8a6bfef421 add default macro file (forgotten earlier) 2022-02-09 18:02:57 +01:00
3e6f2f99c3 rework format method to support multiple output files 2022-02-09 18:02:41 +01:00
6798962880 correct file extension handling for simple tex formatters 2022-02-09 17:42:56 +01:00
7a3fded422 implement naming scheme 2022-02-09 17:31:06 +01:00
65d2df0aa6 fix macro replacement bugs: basic macro replacement now working 2022-02-09 17:22:38 +01:00
1f9825e937 fix some formatting issues with headers 2022-02-09 16:24:02 +01:00
190ff1a339 split up postprocessing of lines and shipout. add trailing % characters for latex2e packages 2022-02-09 15:59:11 +01:00
b4526f5d0c adapt usage of macros to new attribute dict 2022-02-09 15:46:10 +01:00
5c244f2680 better error checking 2022-02-09 15:39:36 +01:00
c2e2a3fad5 add attribute dict to pytex formatters to query attributes used in formatting 2022-02-09 15:38:01 +01:00
7b689255bc integrate git version info into formatters 2022-02-09 14:08:51 +01:00
c3b4a87b51 implement getting git version info 2022-02-09 13:35:38 +01:00
209829ffe3 better cleaning functions / add documentation 2022-02-09 12:38:40 +01:00
591e6533b4 reorganize git versioning types
clean dict also recursively in lists
2022-02-09 12:26:24 +01:00
1e8fe43131 refactor git version info into own file 2022-02-09 12:06:15 +01:00
c04897c26c fix parsing tex type and flavour 2022-02-09 11:55:18 +01:00
5a5f0ef1e4 move macro-related enums. add attributes to pytex formatters 2022-02-09 11:49:14 +01:00
3f25502be4 add properties for tex type and flavour 2022-02-09 11:39:58 +01:00
180eae4f12 fix bug with line stream 2022-02-09 11:26:01 +01:00
410bf3d519 set up version info after build 2022-02-09 01:22:25 +01:00
ec26ec232f add newline after header 2022-02-08 23:54:38 +01:00
2222e20e47 fix some bugs in formatters 2022-02-08 23:54:29 +01:00
25935f4350 fix bug in GenericText 2022-02-08 23:45:55 +01:00
5f8411d907 fix missing property decorators 2022-02-08 23:34:18 +01:00
80036d3dda fix bugs in GenericText 2022-02-08 23:33:43 +01:00
189e0178c4 implement parts of builder 2022-02-08 21:57:30 +01:00
3571d409f0 fix some bugs, more type annotations 2022-02-08 19:01:18 +01:00
92e69a0d77 let pytex source files auto select formatter if not given 2022-02-08 18:31:36 +01:00
f89ccf245b add auto formatter choosing 2022-02-08 18:26:25 +01:00
a0dbb3882e fix some type errors 2022-02-08 17:40:08 +01:00
6cd8d9655d fix future config handling, use abstract classes 2022-02-08 17:21:36 +01:00