-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Setting margins with «geometry» in LaTeX doesn't work #2340
Comments
If you want to set the page geometry (height, width, margins, footer, header, page background) for ODT output, you need to define it in a separate file holding all the styles you want to use, my-reference.odt. Then, when generating ODT, use the On Sat, Aug 1, 2015 at 8:29 PM, Hi-Angel notifications@github.com wrote:
|
@KurtPfeifle do you mean configuring the styles by hand? Hm… You know, it is a good idea — if this is indeed possible, I think I could try to write my diploma in Markdown, and configure styles with a separate «.odt»… Anyway, the problem is remains. I can say even more: in different times I tried to convert different formats, and the pandoc have never ever worked for me; in the end I always used another converter. Today I wanted to try to fix a few, then I found that with regard to a LaTeX there still a bunch of problem, I just won't have a time for all of them; plus after I saw one pull request that referred to a feature I need I'm not even sure these would be accepted. Still I have a feeling that I shouldn't leave it as is, and I must at least start reporting them. |
On Sat, Aug 1, 2015 at 8:55 PM, Hi-Angel notifications@github.com wrote: @KurtPfeifle https://github.com/KurtPfeifle do you mean configuring the
Anyway, the problem is remains. I can say even more: in different times I
My advice to you is to read the available documentation |
@KurtPfeifle I am not sure I understand you. I am thankful to you for the hint in general, but it have little to do with the fact that pandoc ignores elements of a particular format, like |
Pandoc is able to handle a lot of very different document formats. However, it is impossible to transform the specific _layout_ of one document format into an (identical) layout of a different document format. What _is_ possible (even not completely), is to transform + preserve the document _structures_. And this is what Pandoc does, and does really well.
If you read up more about Pandoc's capabilities, scope and also stuff that's known to not work you will become more aware of these issues and can adapt your expectations to reality. |
(Note about my previous answers: the formatting of these is b0rken. I had replied to them by eMail, and had put Markdown formatting inside. It seems that I shouldn't do that -- the Markdown formatting does not arrive in the same shape on this website. It is even impossible to edit the comment here on the website and fix its formatting. While it will look OK in the Preview tab, it will be even worse than before in the real view. 👎 _Note to self:_ I should always go to the GitHub website to reply to posts if I want to be sure my formatting is OK.) |
What is called More over, I recall that CSS even support a bunch of different units, like |
+++ Hi-Angel [Aug 01 15 11:55 ]:
Pandoc identifies structural elements in a document and To see what is "in scope," you can have a look at the Pandoc Features not representable there won't come across in |
@jgm I saw the module today, while I tried to fix a page counter. What I am see — is that we just need to add to the data elements according to a page, and etc. Obviously when one want to convert into a format that doesn't support pages, that would be simply ignored. But why should we do it for those formats that have that support? |
Ah, I see your answer to another issue. Okay, now it is more clear. So, to sum up — if one wants to add a new element into the Pandoc ADT, they have to do pull request with it being also implemented in every reader and writer, right? |
+++ Hi-Angel [Aug 01 15 14:23 ]:
Yes. But also there should be preliminary discussion on |
@jgm why did you close it? The fact that it's hard to add doesn't magically make the bug nonexisting :/ |
+++ Hi-Angel [Aug 07 15 23:52 ]:
Because it's not a bug, but "out of scope." As I explained, |
@jgm oh, well, then it would be nice to see at the main page that support of margins is "out of scope". To be clear: supposedly that e.g. docx and latex had the same formatting features, then the convertation "docx→latex→docx" should be identity. When it isn't, the converter is buggy. I think adding to the main and "Contributing" pages all the things "out of scope" would save much time for both people trying to use the app, and the ones who reporting or fixing the "out of scope" bugs. |
Good idea, I've done this in +++ Hi-Angel [Aug 08 15 14:19 ]:
|
Setting page margins with
geometry
silently ignored upon being converted to an.odt
. A minimal reproducible testcase:Here the left margin being set the giant 4cm — however upon converted to
.odt
the left margin becomes set to zero.The command to convert is
pandoc -f latex -t odt -o output.odt test.tex
Pandoc version is 1.15.0.6
The text was updated successfully, but these errors were encountered: