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

Write TUGboat 44:1 article about attributes and attribute contexts #234

Closed
Witiko opened this issue Dec 28, 2022 · 13 comments
Closed

Write TUGboat 44:1 article about attributes and attribute contexts #234

Witiko opened this issue Dec 28, 2022 · 13 comments
Labels
documentation Related the technical documentation, the user manual, and the README files
Milestone

Comments

@Witiko
Copy link
Owner

Witiko commented Dec 28, 2022

In Markdown 2.22.0, we will support attribute context renderers for headings, bracketed spans and fenced divs, and links, images, code spans, and fenced code. We should write a TUGboat article that introduces the concept of attributes and attribute contexts and show how coders can style attributes with the Markdown package.

@Witiko Witiko added the documentation Related the technical documentation, the user manual, and the README files label Dec 28, 2022
@Witiko Witiko added this to the 2.22.0 milestone Dec 28, 2022
@Witiko
Copy link
Owner Author

Witiko commented Dec 28, 2022

Putative outline

  1. Introduction
  2. Attribute contexts
  3. Examples
  4. Conclusion

@Witiko Witiko changed the title Write TUGboat 44:1 article about attributes and attribute contexts Write TUG 2023 article about attributes and attribute contexts Feb 28, 2023
@Witiko Witiko changed the title Write TUG 2023 article about attributes and attribute contexts Write TUGboat 44:1 article about attributes and attribute contexts Feb 28, 2023
@Witiko
Copy link
Owner Author

Witiko commented Mar 3, 2023

Here is the current copy of the article: https://www.overleaf.com/read/dshtsnnmtshs

@krono
Copy link

krono commented Mar 3, 2023

Looks good!

@Witiko
Copy link
Owner Author

Witiko commented Mar 24, 2023

I will be sending the article to Karl Berry on Sunday evening. Reviews are welcome. 😉

@Witiko
Copy link
Owner Author

Witiko commented Mar 24, 2023

@writersglen: This article addresses your requests for giving more control over formatting to the hands of authors. I will appreciate your review.

@Witiko
Copy link
Owner Author

Witiko commented Mar 26, 2023 via email

@Witiko Witiko closed this as completed Mar 26, 2023
@writersglen
Copy link

writersglen commented Mar 28, 2023 via email

@Witiko
Copy link
Owner Author

Witiko commented Mar 28, 2023

@writersglen Thank you, that is useful feedback. I was trying to concentrate on the non-technical stuff (what are attributes and how to type them) in Section 1 (Writer's workshop) and leave the technical stuff (how to format the output) for sections 2 and 3. Perhaps the introduction is too technical for the self-publishers?

@writersglen
Copy link

writersglen commented Mar 28, 2023 via email

@Witiko
Copy link
Owner Author

Witiko commented Mar 28, 2023

@writersglen I am sorry to hear that. I hear good reviews from both LaTeX programmers and technical writers, so I suppose I am mostly failing at communicating with authors of fiction and non-technical prose who are not familiar or comfortable with LaTeX or programming in general. I will be happy to hear any constructive feedback that you can offer, i.e. what about applying the new features is unclear from my explanation, since this can make the article easier to digest for readers.

@writersglen
Copy link

writersglen commented Mar 28, 2023 via email

@Witiko
Copy link
Owner Author

Witiko commented Mar 28, 2023

Consider that the average self-publisher is quite comfortable typesetting their books with MS Word [...] We’re asking self-publishes to take a giant, scary, step from Word to LaTeX, from LaTeX to markdown. Unless we can make a compelling case, most would rather not bother.

I am asking self-publishers to accept the division of labor between authors, designers, and programmers, where authors prepare the content, designers prepare a design spec, and programmers prepare a template based on the design spec and take care of the LaTeX side of things. Until version 2.15.0 of the Markdown package, I was also asking self-publishers to type their documents in Markdown rather than MS Word. Since version 2.15.0, there is no additional ask and self-publishers can just type their manuscript in MS Word, see Section 2.3 of our article for more details.

I acknowledge that programmers and designers cost money, so any piece of software that allows self-publishers to cut the middle-man is welcome. The Markdown Package for TeX is not such a piece of software. Arguably, recent advances in AI will likely make it possible to replace the programmer and the designer by an AI model who will write the necessary code for the self-publisher.

The two edge cases [...] that compelled me to defer publication of Publish Beautiful, are these:

  1. Lack of control over vertical spacing. If you scan the PB ms, you’ll see inconsistent (too tight or too loose) vertical spacing at various points in the ms.

Under the design philosophy of Markdown, vertical spacing is a presentation aspect of a document that should not be controlled by the self-publisher but by the template prepared by the programmer.

  1. Inability to scale and appropriately position images.

I show how self-publishers can scale images in Markdown using attributes in the last example of Section 1 in the article that I asked you to review. In the last example of Section 2, I show how a programmer would implement such scaling, although that's rather technical and likely not as interesting to you.

Similarly, attributes can be used to influence the positioning of images. The self-publishers could type ![image](image.png){position=top} and then instruct the programmer to make sure that position=top means that the image should appear on top of a page.

Under the design philosophy of Markdown, both scale and position are presentation aspects, so it is better to leave them to the template that you are using, or have a number of coarse-grained classes of images such as {.small}, {.large}, and {.x-large} with their own rules for scaling and positioning. This allows the self-publisher to focus on the content instead of micromanaging the presentation aspects of their work.

@Witiko
Copy link
Owner Author

Witiko commented Mar 30, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Related the technical documentation, the user manual, and the README files
Projects
None yet
Development

No branches or pull requests

3 participants