put examples into separate files #24

Closed
opened 2022-01-14 10:02:59 +08:00 by sb10q · 5 comments
Owner

Would it be possible to put the example code as .py files into a subfolder of this repos, and then include them automatically from the *.tex?
That would make it a lot easier to test e.g. to make sure that the examples are still up-to-date.

Would it be possible to put the example code as .py files into a subfolder of this repos, and then include them automatically from the ``*.tex``? That would make it a lot easier to test e.g. to make sure that the examples are still up-to-date.
Member

Should be easier to do for the standalone or straight-forawrd examples.

Might need some refactoring for more complicated ones, like Urukul RAM mode & SU-Servo. I purposefully omitted & reformat the codes to make it less verbose and easier to follow.

Should be easier to do for the standalone or straight-forawrd examples. Might need some refactoring for more complicated ones, like Urukul RAM mode & SU-Servo. I purposefully omitted & reformat the codes to make it less verbose and easier to follow.
Author
Owner

A build script could perhaps extract the relevant part for inclusion? It could be delimited with a special comment syntax in Python.

A build script could perhaps extract the relevant part for inclusion? It could be delimited with a special comment syntax in Python.
Member

9488a03a for DIO datasheets.

9488a03a for DIO datasheets.
Member

8404fed3 for Urukul, 48eb5a5a for Zotino.

8404fed3 for Urukul, 48eb5a5a for Zotino.
Member

I just ended up using \inputminted and specify the lines to include. It seems like the easiest way.

I just ended up using `\inputminted` and specify the lines to include. It seems like the easiest way.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sinara-hw/datasheets#24
No description provided.