-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
'title' parameter of 'render' block should be caption of included diagram #6
Comments
In fact there should be a parameter for the caption and another one for the alternative text. |
fixed |
For the following example, I would expect the figure caption "Figure 1: Repository Structure" to be displayed. But it isn't, at least not converting to PDF via LaTeX. Converting to markdown does yield expected syntax. Issue seems to be trailing "{.dot}" in resulting markdown. Removing manually and converting that markdown to PDF via LaTeX yields proper caption. graph {
fontsize=18.0
splines="ortho"
node [shape=folder fontname="Helvetica" width=2.0 fixedsize=true]
sogs [root=true shape=box]
sogs -- {
lib
scripts
src
system_test
test
}
} |
Christophe, one lingering issue. See my latest comment on issue.
From: CDSoft ***@***.***>
Sent: Thursday, November 4, 2021 12:28 PM
To: CDSoft/panda ***@***.***>
Cc: Bill Andel ***@***.***>; Author ***@***.***>
Subject: [External] Re: [CDSoft/panda] 'title' parameter of 'render' block should be caption of included diagram (Issue #6)
fixed
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#6 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AWKXBGNDZ6BYCBSNDYIOZF3UKLNFZANCNFSM5HKFGBZQ>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
in
|
OK, so I tried removing the “.dot” class from my input line. It had no effect – i.e. no caption shown – when going straight from markdown to latex. If I went in two steps, i.e. markdown to (filtered) markdown and then to PDF, I got the caption. Not sure what is going on in the first case, which is my desired use case.
From: CDSoft ***@***.***>
Sent: Friday, November 5, 2021 10:22 AM
To: CDSoft/panda ***@***.***>
Cc: Bill Andel ***@***.***>; Author ***@***.***>
Subject: [External] Re: [CDSoft/panda] 'title' parameter of 'render' block should be caption of included diagram (Issue #6)
in
```{.dot render="{{dot}}" title="Repository Structure"}
graph {
...
}
```
.dot is not required. It's not even used to generate the diagram. I usually keep the .dot class to let my text editor colorize the source of the diagram using the appropriate syntax. You can remove it:
```{render="{{dot}}" title="Repository Structure"}
graph {
...
}
```
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#6 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AWKXBGLDWY7NA7ZVJKAOZ6DUKQHD5ANCNFSM5HKFGBZQ>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
i.e., the following:
...should result in this:
...rather than this:
The text was updated successfully, but these errors were encountered: