A query though , I have a figure and i want to write a paragraph below the figure only but while including the figure and writing a paragraph below the figure and compiling it doesnot give me the desired thing rather the text shifts above the figure!
@BAYMAX the text won't shift but a figure environment specifies that its content can be moved (that is all it does) if you do not want that to move you shouldn't be using a figure environment.
@BAYMAX A figure environment is a float, and as @DavidCarlisle mentioned in the messages above, the context will move when needed. If you need an absolute position, you'd be better not using figure at all.
@BAYMAX Do you have a caption? Use package float and add H -> \begin{figure}[H]. But if the image is not allowed to move, you don't really need a caption.
@BAYMAX if your input is wrong then you will get an error message saying what is wrong, but if you neither show your input nor the error how can anyone help?
@UlrikeFischer \def\wlog#1{^^J!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!^^J! look at me^^J! I have as many ! as unicode-math and expl3^^J#1^^J!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!}
\def\wlog#1{\immediate\write-1{^^J!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!^^J! look at me^^J! I have as many ! as unicode-math and expl3^^J#1^^J!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!}}
@PauloCereda You clearly took it in better humour than I did :P Probably doesn't help that I'm trying to track down documentation on a package because it isn't working the way I expect (likely PEBKAC), so that already set the mood before I visited CTAN...
Can't figure out where I'm going wrong. Trying to add scanned pages (jpgs) using pdfpages' \includepdf. Images are inserted fine but I would like to add them to the TOC (see eg this answer. But pdfpages is complaining 'There's something wrong with the entries of addtotoc'
@DavidCarlisle Er, suggested somewhere in another answer for how to include an image as a full page. Turned out to be handy as it (in theory) has addtotoc to update the TOC too.
You don’t even have to convert it first, you can just go \includepdf{my_image.jpg}. — doncherryAug 1 at 16:46
If there is a different/better way to include scanned pages as full pages in a document, with corresponding updates to page numbers and TOC entries, I am happy to do that!
My mistake indeed- misunderstood the first argument (page)
Cheers for the advice tho- MWE'ing it let me debug in a more helpful way :)
@bertieb if it works it works I'm just surprised (although of course I never read the package documentation:-) I'd have probably gone \clearpage\includegraphics{zz.jpg}\addtocontents{whatever you want to say}\clearpage with whatever spacing is needed to make the image come in the right place
@DavidCarlisle Fair enough- will keep that in mind for future (didn't know / forgot about \addtocontents)- that said, now that it's working it seems to be a DWIM solution (images sized correctly etc) :)
@PauloCereda Given that today is Reformation day, this is kind of like the Protestants: can't agree on anything except that they hate the Catholics. :)
Saying thank you. I'm new to all this and just had a question answered so wanted to say 'thanks' as a comment but it says not to. Is it frowned on to do so? - seems a bit rude not to really. I did click on the vote up button as mentioned in the Help center.
@Robert you can/should also accept one of the answers, the occasional thanks comment doesn't hurt too much even though as a general rule the network discourages comments that don't have technical content
@yo' Looking back at when I started to make P an operator I was creating some notation for upper and lower bounds on the probability so I had superscripts and I was doing things like P_{red}. But who knows.
@egreg you don't know of any pre-packaged fix for last line of RaggedLeft do you? vvv
@Matthias not easily. In captions, as they are in a box not on the main vertical list as in my example, you could in theory set it with \parfillskip set to the default \fill glue then the warning would go but the last line of the paragraph would always go flush left then you could use \lastbox to dis-assemble the box and re-position the last line flush right, but it's not easy and rather fragile and might clash with other macros eg color would make it hard, and ignoring the warning in this case is certainly easier. — David Carlisle1 min ago
@DavidCarlisle \RaggedRight and \RaggedLeft are for large paragraphs; they set \rightskip or \leftskip to 0pt plus 20pt, which is very likely to cause underfull boxes