Different header for odd and even pages with elsarticle class - header

I'm writting an article in Latex with the document class elsarticle. I've tried the fancyhdr package to customize the headings for odd and even pages. I've also rewritted the class "#pprintTitle" to obtain such a headers. None of the methods worked. I tested the fancyhdr with the document class "article" and "book" and it works perfectly. But I need to use the document class elsarticle, for which fancyhdr does not work. The example that I'm trying to modify is the following one:
https://fr.overleaf.com/latex/templates/example-of-elsevier-article-template-with-dummy-text/qfscmwntknmq
Thank you all for the help.

Related

Odoo : "t-call" issue with website editor

I am trying to include a t-call inside the homepage template in Odoo (between two sections). It works fine but when I open the editor the drageable areas around the other sections are not displaying. Is there a way to ignore the t-call part when the editor loads or is there a way around this?
I have tried using dynamic templates but I would like to avoid the loading time when the page loads and render the page on the server.
I have also tried adding various classes or attributes on the tags surrounding the call but nothing seems to work.
Thanks,

How can I draw a line over all pages in fpdf

Just as I ask in the title, how can I draw a line over all pages using fpdf?
I tried giving the line a height of 9000, but this only gave a line to the full first page, but not on any other pages.
Anyone knows how I can solve this? Thanks!
In FPDF, the header method is called automatically when a new page is created. From the API:
This method is used to render the page header. It is automatically called by AddPage() and should not be called directly by the application. The implementation in FPDF is empty, so you have to subclass it and override the method if you want a specific processing.
Here's the steps you take:
Ensure that your PDF class extends FPDF's
Override the header method in your extension
Add your line-drawing code to the header method.
This is the simplest solution. No keeping track of whenever a new page is added. FPDF does it automatically, so build off of their API to achieve your goal.

Summary Links Web Part spacing

I'm using Summary Links web part in our SP2010 pages. However, I would like to edit the spaces that it places before each list item:
When I looked at the source code, I saw that the UL tag was using this class: dfwp-list. I tried modifying it via a custom CSS code:
But it's not doing the desired effect :( Do you know of any way that I can get the desired effect?
Update:
Here's what I see in the developer tool:

Setting template property from a content page (sitefinity 4.4)

the site that I'm working at is designed in a such way that CSS class is set for the tag on all the pages and the css classes used are different for all pages. Each page has common elements such as a header, a footer and a nav bar. I'd like to set up a single page template and include all common elements there but the body tag stands in the way. Is there a way to control a template from a content page? I know I can specify a code behind for content pages but i can't rely on content authors to enter it correctly each time they add a page. My current thinking is to set up multiple page template, one for each css class that is referenced in the body tag and put the common page elements into user controls. This is less than ideal because I will end up with lots of mostly identical templates and my user controls would not be editable easily. I guess I would have to use shared content items and such making the content authors hunt all over the site. I would have been much simpler to update the common header in a single page template.
Can someone please suggest a way?
I submitted a reply in the Sitefinity forums where you originally posted this, but just in case you check here first I'll ask the same question: how is the css class for body determined?
if it can be done programmatically you can use the code-behind of the Master Page for the template to set it so that it's handled automatically.
If this won't work, tell me more about how the css class is assigned and I will try to come up with an alternative.
hope this is helpful!

Where I can get hyperlinks in pdf document structure (except "Annots" entry in page dictionary)?

I have two pdf documents (doc1 and doc2) with hyperlinks e.g www.somlink.com, www.somlink2.com.
According to PDF Specification I can get those hyperlinks via Link Annotations. Link Annotations can be found in pdf page's dictionary under "Annots" key.
CGPDFDictionaryRef pageDictionary = CGPDFPageGetDictionary(someCGPDFPage);
CGPDFArrayRef annots;
CGPDFDictionaryGetArray(pageDictionary, "Annots", &annots);
So the problem is that in one pdf document (doc1) I get that "Annots" array but in another document (doc2) there is no such entry in page dictionary.
And the thing is that with PDFKit.framework you can get those annotations in PDFPage class using - (NSArray *)annotations method even if there is no "Annots" entry in page dictionary.
I can't use PDFKit.framework on iPad/iPhone so I am working with Quartz framework :)
So it seems that there is another place where you can specify hyperlinks (or Link Annotations in PDF Reference), not only in "Annots" array and PDFKit.framework somehow know ho to do that.
Any ideas where can I get those hyperlinks?
Links on a page THAT YOU CAN CLICK ON have to be annotations. Period. No annotations, no links.
A string of text "http://blah.com" isn't necessarily a link, it's just a piece of text describing a URL. This may be what's causing your confusion.
It's also possible to embed link actions in bookmarks. I'm not at all familiar with PDFKit or Quartz, so you're on your own as far as API calls are concerned.
And finally, (having reread your question), I believe annotations can be inherited from their parent Pages object. Gonna have to look that one up... Nope. The annotations array MUST be in the leaf page object, or it's not valid.
Can you post links to your PDFs? Something Ain't Right here.
PDF viewer like Adobe Reader simply allows to click and navigate on a plain text, if it looks as a hyperlink - i.e. starts with http://, https://, ftp:// and ends up with some URL delimiter such as space. As simple as that ;)