Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

The NUIG "off-topic" thread

24567

Comments

  • Closed Accounts Posts: 11,924 ✭✭✭✭RolandIRL


    Is anyone here good with LaTeX? I'm trying to include an eps file in my document but it doesn't seem to showing up. It creates a space for where it should be but it's just whitespace.


  • Registered Users, Registered Users 2 Posts: 9,038 ✭✭✭Ficheall


    Does it absolutely have to be an eps? Is it possible to change the file type? Because that would be easier. I've never managed to get eps working with Latex, but jpgs etc are grand.


  • Closed Accounts Posts: 11,924 ✭✭✭✭RolandIRL


    Yeah, I can change the filetype. I'm exporting them from Maple. EPS just seems to be a standard among the guides and other LaTeX docs.

    Tried PNG there and worked perfect. The JPGs were very bad quality. Cheers Ficheall.

    EDIT: another thing while I'm at it. I keep getting an error "Underfull \hbox (badness 10000) in paragraph" yet I can't seem to find how to fix it. Doesn't seem to affect the document afaik.


  • Registered Users, Registered Users 2 Posts: 9,038 ✭✭✭Ficheall


    RolandIRL wrote: »
    Yeah, I can change the filetype. I'm exporting them from Maple. EPS just seems to be a standard among the guides and other LaTeX docs.

    Tried PNG there and worked perfect. The JPGs were very bad quality. Cheers Ficheall.

    EDIT: another thing while I'm at it. I keep getting an error "Underfull \hbox (badness 10000) in paragraph" yet I can't seem to find how to fix it. Doesn't seem to affect the document afaik.

    It's possible to change the quality of the JPGs sometimes - they're often set to automatically be at only 75% quality or something for some reason.

    That's a warning as opposed to an error - they don't prevent the document from compiling, and can be safely ignored. All it's saying is that you haven't made optimal use of assigned space or somesuch.


  • Closed Accounts Posts: 11,924 ✭✭✭✭RolandIRL


    Ficheall wrote: »
    It's possible to change the quality of the JPGs sometimes - they're often set to automatically be at only 75% quality or something for some reason.

    That's a warning as opposed to an error - they don't prevent the document from compiling, and can be safely ignored. All it's saying is that you haven't made optimal use of assigned space or somesuch.

    Think it's just easier to export to PNG instead of messing with those settings in Maple.

    With the editor I'm using, it still compiles even with errors (just those sections look weird) so I never noticed anything wrong.

    Must say, LaTeX makes the documents look so much prettier than Word docs, even if it does have a bit more of a learning curve.


  • Advertisement
  • Closed Accounts Posts: 11,924 ✭✭✭✭RolandIRL


    Alright, back again for more LaTeX help
    \begin{align}
    & \includegraphics{Graph1.png} & \includegraphics{Graph2.png} \\
    & \includegraphics{Graph3.png} & <table>
    \end{align}
    

    Where <table> is, I obviously want to stick a table there. Now what's the best way to do this? I attempted using \tabular but everything just went to whitespace when I compiled. Would my best bet be creating a table in another program, exporting it as a PNG file and then using \includegraphics like I did with the graphs?


  • Registered Users, Registered Users 2 Posts: 9,038 ✭✭✭Ficheall


    \begin{table}
    \caption {Caption}\label{A label in case you want to reference the table}
    \centering
    \begin{tabular}[t]{|c|c|c|c|c|c|c|}\hline
    $\beta_n$ & $X_1$ & $X_3$ & $X_5$ & $X_7$ & $X_9$ & $X_{15}$ \\\hline
    $\beta_0$&3019&16&11&10&8&1\\
    $\beta_1$&175&1201&171&7&2&2\\\hline
    \end{tabular}
    \end{table}

    The number of "c"s is the same as the number of columns.
    The |c| means that there is a vertical line between each entry in the table. You can leave them out if you wish. Mess around with it and see what happens.
    The \betas and Xs etc. are obviously just my data which I was messing around with.
    The \\ at the end of every line is necessary to skip to the next line, and the \hline makes a horizontal line underneath the line you've just written.


  • Registered Users, Registered Users 2 Posts: 9,038 ✭✭✭Ficheall


    Also - you might look at using subfigures.


  • Closed Accounts Posts: 11,924 ✭✭✭✭RolandIRL


    Tables I can do grand, it's placing it in an align environment that's the problem. It doesn't seem to place nice with it. I'll have a look at subfigures as you said and see if that works. I can always go to my supervisor and get him to fiddle around with it if I'm still having problems.

    Also, is it better to use \centering or \begin{center}...\end{center} or does it even matter?

    Also #2, the URL in your sig isn't properly linked. Boards needs you to either use the [url] tags or stick [noparse]http://[/noparse] in front of it for it to become live.[/url]


  • Registered Users, Registered Users 2 Posts: 9,038 ✭✭✭Ficheall


    RolandIRL wrote: »
    Tables I can do grand, it's placing it in an align environment that's the problem. It doesn't seem to place nice with it. I'll have a look at subfigures as you said and see if that works. I can always go to my supervisor and get him to fiddle around with it if I'm still having problems.

    Also, is it better to use \centering or \begin{center}...\end{center} or does it even matter?

    Also #2, the URL in your sig isn't properly linked. Boards needs you to either use the [url] tags or stick [noparse]http://[/noparse] in front of it for it to become live.[/url]

    Cheers - I can't actually see sigs, so had no way to check. Will try to remedy that.

    I use \begin and \end tags wherever possible, because it's easier to keep track of what's what.

    I've never actually used {align}, so I'm not sure what you want from it.
    I usually just muck about with \vspace and \hspace :o


  • Advertisement
  • Closed Accounts Posts: 11,924 ✭✭✭✭RolandIRL


    http://www.boards.ie/vbulletin/profile.php?do=editoptions - Scroll down a bit and you'll see the "Show signatures" option.

    I'm using {align} so that it's all, ehm, aligned.
    \begin{align}
    & Entry 1 & Entry 2 \\
    & Entry 3 & Entry 4 \\
    \end{align}
    
    For example, the above code would appear as
    latex_1.jpg

    The ampersands align under each other so if I had more text in Entry 3 so that it pushed over Entry 4, Entry 2 would automatically move over so as to always be starting where Entry 4 started. I'm sure wikibooks can explain it much better than me :o

    With \hspace and \vspace, is it more trial-and-error to get it looking right?


  • Registered Users, Registered Users 2 Posts: 9,038 ✭✭✭Ficheall


    Yeah, I guessed that was what {align} did :pac:

    I can't imagine why the table wouldn't just slot in though - unless it's too big? You could try putting a {\small } around your table section and see if that might be the problem.

    Yes, that's what hspace and vspace are - very tedious.


  • Closed Accounts Posts: 11,924 ✭✭✭✭RolandIRL


    Ficheall wrote: »
    Yeah, I guessed that was what {align} did :pac:

    I can't imagine why the table wouldn't just slot in though - unless it's too big? You could try putting a {\small } around your table section and see if that might be the problem.

    Yes, that's what hspace and vspace are - very tedious.
    Aye, I'm a right Captain Obvious :P

    I have a feeling that it may be because it's not correctly parsed or doesn't know where some symbols start/finish, I can't remember the errors off-hand and I'm not going at it this late at night! I'll have a poke at it tomorrow and see where I get.

    I'm sure hspace and vspace have their uses. They must, since I can't see any mention of them being deprecated online. I'd say they're more for producing whitespace than aligning items.


  • Registered Users, Registered Users 2 Posts: 162 ✭✭Nal


    this forum seems to be a good bit more active these days, hope all the new first yrs stay around. Should probably try and post more myself!


  • Registered Users, Registered Users 2 Posts: 532 ✭✭✭ItAintMeBabe


    Anybody here get called for an interview in the College Bar on Monday??? :)


  • Closed Accounts Posts: 11,924 ✭✭✭✭RolandIRL


    RolandIRL wrote: »
    Aye, I'm a right Captain Obvious :P

    I have a feeling that it may be because it's not correctly parsed or doesn't know where some symbols start/finish, I can't remember the errors off-hand and I'm not going at it this late at night! I'll have a poke at it tomorrow and see where I get.

    I'm sure hspace and vspace have their uses. They must, since I can't see any mention of them being deprecated online. I'd say they're more for producing whitespace than aligning items.
    Finally got this working. Solution was to use \minipage in a {table} environment. Only thing is that the table in the 4th quadrant is in the exact centre as opposed to the top of the minipage, but it looks fine regardless.

    Here's the code for anyone interested, though I'd warrant that most don't have a clue what me and Ficheall have been on about :pac:
    \begin{table}[ht]
    \begin{minipage}[b]{0.45\linewidth}\centering
    \includegraphics[width=3in]{Graph1.png}
    \end{minipage}
    \begin{minipage}[b]{0.45\linewidth}\centering
    \includegraphics[width=3in]{Graph2.png}
    \end{minipage}\\
    \end{table}
    \begin{table}[ht]
    \begin{minipage}{0.45\linewidth}\centering
    \includegraphics[width=3in]{Graph3.png}
    \end{minipage}
    \begin{minipage}[!ht]{0.45\linewidth}\centering
    \begin{tabular}{| c | c |}
    \hline
    \textbf{Column 1} & \textbf{Column 2} \\\hline
    1 & 2\\ 
    3 & 4 \\ \hline
    \end{tabular}
    \end{minipage}
    \end{table}
    


  • Registered Users, Registered Users 2 Posts: 931 ✭✭✭aperture_nuig


    RolandIRL wrote: »
    Finally got this working. Solution was to use \minipage in a {table} environment. Only thing is that the table in the 4th quadrant is in the exact centre as opposed to the top of the minipage, but it looks fine regardless.

    Here's the code for anyone interested, though I'd warrant that most don't have a clue what me and Ficheall have been on about :pac:
    \begin{table}[ht]
    \begin{minipage}[b]{0.45\linewidth}\centering
    \includegraphics[width=3in]{Graph1.png}
    \end{minipage}
    \begin{minipage}[b]{0.45\linewidth}\centering
    \includegraphics[width=3in]{Graph2.png}
    \end{minipage}\\
    \end{table}
    \begin{table}[ht]
    \begin{minipage}{0.45\linewidth}\centering
    \includegraphics[width=3in]{Graph3.png}
    \end{minipage}
    \begin{minipage}[!ht]{0.45\linewidth}\centering
    \begin{tabular}{| c | c |}
    \hline
    \textbf{Column 1} & \textbf{Column 2} \\\hline
    1 & 2\\ 
    3 & 4 \\ \hline
    \end{tabular}
    \end{minipage}
    \end{table}
    

    I've looked into Latex before, but never actually got around to learning. Do you find it that useful for reports etc? I hate having to boot into windows just to use the office suite, and their isn't a decent replacement on ubuntu ( Libreoffice doesn't cut it IMHO).


  • Closed Accounts Posts: 11,924 ✭✭✭✭RolandIRL


    I've looked into Latex before, but never actually got around to learning. Do you find it that useful for reports etc? I hate having to boot into windows just to use the office suite, and their isn't a decent replacement on ubuntu ( Libreoffice doesn't cut it IMHO).

    This is actually my first time using it this summer. There's a bit of a learning curve with it, but it's easy enough to get the hang of. Google and wikibooks are your friends for guides. It's more useful for doing maths with. A simple equation that could take minutes to do out in Word/LibreOffice can be done in seconds with LaTeX. On the other hand, formatting can be a hassle with it since it can be trial and error to get it right.

    It does make documents look so much nicer than in Word. Look at this document I just did up.

    I would spend a bit of time messing around with it and looking at other people's work before starting something of your own.


  • Registered Users, Registered Users 2 Posts: 9,038 ✭✭✭Ficheall


    You should definitely look into it, aperture. It looks far nicer, and it doesn't take that long to get the hang of. For pretty much anything you want you can just find someone else's template and substitute in your own stuff, with minimal twiddling to get what you want.

    Roland - I find that if I use [HT] instead of [!ht] I get better results, you could try that. I can't see your dropbox link, though, so I'm not 100% sure what exactly your document looks like/is supposed to look like.


  • Registered Users, Registered Users 2 Posts: 931 ✭✭✭aperture_nuig


    RolandIRL wrote: »
    This is actually my first time using it this summer. There's a bit of a learning curve with it, but it's easy enough to get the hang of. Google and wikibooks are your friends for guides. It's more useful for doing maths with. A simple equation that could take minutes to do out in Word/LibreOffice can be done in seconds with LaTeX. On the other hand, formatting can be a hassle with it since it can be trial and error to get it right.

    It does make documents look so much nicer than in Word. Look at this document I just did up.

    I would spend a bit of time messing around with it and looking at other people's work before starting something of your own.

    fair enough, that would have been useful to know in my engineering undergrad! ;)


  • Advertisement
  • Closed Accounts Posts: 11,924 ✭✭✭✭RolandIRL


    Fixed the Dropbox link, forgot to make it the public link instead of just clicking it and copying the URL.

    [HT] as opposed [!ht] doesn't seem to make any difference, but no matter, it looks fine the way it is.


  • Registered Users, Registered Users 2 Posts: 931 ✭✭✭aperture_nuig


    Another question about it, can you export as a .docx or is it just .pdf? Sometimes lecturers will request docx so they can add review notes. and thanks Ficheall, I've no issue fiddling with it anyway as I'm a coder so I'm not averse to getting stuck in.


  • Closed Accounts Posts: 11,924 ✭✭✭✭RolandIRL


    Another question about it, can you export as a .docx or is it just .pdf? Sometimes lecturers will request docx so they can add review notes. and thanks Ficheall, I've no issue fiddling with it anyway as I'm a coder so I'm not averse to getting stuck in.

    http://tex.stackexchange.com/questions/8836/producing-doc-docx-from-latex

    First google result for "latex to docx".


  • Registered Users, Registered Users 2 Posts: 279 ✭✭Captain Morgan Freeman


    Anybody here get called for an interview in the College Bar on Monday??? :)

    I did. I didn't get the job but they said if any vacancies came up i would be considered. Id imagine a ton of people applied for it.


  • Registered Users, Registered Users 2 Posts: 232 ✭✭Teddy_Picker


    Apologies if I seem completely dense, but does anyone know what became of the Lost and Found? Apparently they're relocating to Aras Ui Chathail, but when I went there yesterday they directed me back to the Concourse! Anybody know if they're operating a makeshift L & F at all?


  • Registered Users, Registered Users 2 Posts: 608 ✭✭✭Cocolola


    Bit of a strange question, but does anyone know if there's anywhere in NUIG that will take a letter (with a stamp of course!) and place it with their own outgoing mail?

    I need to send a letter off to SUSI pronto, but don't have the time to get into the city to a post office in the next few days.


  • Registered Users, Registered Users 2 Posts: 6,068 ✭✭✭LoonyLovegood


    Cocolola wrote: »
    Bit of a strange question, but does anyone know if there's anywhere in NUIG that will take a letter (with a stamp of course!) and place it with their own outgoing mail?

    I need to send a letter off to SUSI pronto, but don't have the time to get into the city to a post office in the next few days.

    There's a box just outside college, if you come out the entrance by the quadrangle it's there. Or if you go out the walkway around by Arts Millenium, there's a post office.


  • Registered Users, Registered Users 2 Posts: 608 ✭✭✭Cocolola


    CTYIgirl wrote: »
    There's a box just outside college, if you come out the entrance by the quadrangle it's there. Or if you go out the walkway around by Arts Millenium, there's a post office.

    I'm an actual moron, I forgot there were such things as post boxes, it's been so long since I've needed to use one :o

    Thanks a mil for that!


  • Closed Accounts Posts: 11,924 ✭✭✭✭RolandIRL


    There's also one outside Aras Ui Cathail last time I was over there, unless that's disappeared with all the construction going on.


  • Advertisement
  • Closed Accounts Posts: 3,689 ✭✭✭joeKel73


    Apologies if I seem completely dense, but does anyone know what became of the Lost and Found? Apparently they're relocating to Aras Ui Chathail, but when I went there yesterday they directed me back to the Concourse! Anybody know if they're operating a makeshift L & F at all?

    We've lost the Lost & Found? :eek:


Advertisement