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

vglinks, zitate etc. funktionieren nicht bei Abbildungsunterschriften #179

Closed
rearatrox opened this issue Jul 6, 2022 · 7 comments
Closed
Assignees
Labels
bug Something isn't working
Milestone

Comments

@rearatrox
Copy link
Contributor

Wie der Titel schon vermuten lässt, funktionieren vglinks und zitate bei den Benennungen der Abbilungen nicht, es kommt folgender Build-Fehler:

image

... bei folgendem Beispiel:

image

Das wars auch schon.

@DSczyrba DSczyrba added the bug Something isn't working label Jul 6, 2022
@DSczyrba DSczyrba added this to the 3.0.2 milestone Jul 6, 2022
@TheColin21
Copy link
Member

ich bin ja der meinung wir sollten das vglink command gleich löschen xD

@DSczyrba
Copy link
Collaborator

DSczyrba commented Jul 6, 2022

Warum?
Da müsste man die ganze Zeile manuell tippen, mit Link und Datum?
\newcommand{\vglink}[2]{\footnote{\hspace{0.5em}vgl.~\href{#1}{#1}~(#2)}}
Der Abstand passt dann ja auch nicht mehr.
Was macht das für einen Sinn?

Außerdem löst es das Problem nicht

@DSczyrba
Copy link
Collaborator

DSczyrba commented Jul 6, 2022

@rearatrox

image

So wäre doch dann richtig oder?

@TheColin21
Copy link
Member

jaa is ja richtig... ich hab das nur noch nie genutzt xD müssen halt für caption für TOF und anzuzeigende caption n weiteres argument an sämtliche umgebungscommands anfügen und ich weiß ausm kopf nich wie man das mit optionalem argument macht

@DSczyrba
Copy link
Collaborator

DSczyrba commented Jul 6, 2022

Das wird nicht so gehen...
Also wir könnten ein \linkcaption einbauen...
Was man wenn man die Fußnote verwenden will benutzen könnte.

Das in Kombination mit untendrunter... Momentan sieht es so aus:

\begin{code}[H]
  %Unnötige Teile entfernt
  \caption[Beispielcode 2]{Beispielcode 2\footnotemark}
  \label{code:example2}
\end{code}
\vgcaption{https://google.de}{06.07.2022}

Wobei \vgcaption quasi das hier ist:
\newcommand{\vgcaption}[2]{\footnotetext{\hspace{0.5em}vgl.~\href{#1}{#1}~(#2)}}

Das muss aber unbedingt außerhalb des Floats, also können wir da mit einem Command nicht viel machen.
Sollte das gewünscht sein, müsste dann der User tätig werden.

@DSczyrba DSczyrba assigned DSczyrba and unassigned TheColin21 Jul 6, 2022
@TheColin21
Copy link
Member

man könnte es auch anders hacky machen. immer ein argument mehr verlangen, mit ifthen unterscheiden, ob das zusatz caption feld leer is und dementsprechend umschalten. aber das wär n breaking change und es mir nich wert

@DSczyrba
Copy link
Collaborator

DSczyrba commented Jul 6, 2022

junge, ne das machen wa nicht.
Meins ist nicht Breaking und nur optional... Sollte es tun.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

3 participants