Showing posts with label Computer Geek. Show all posts
Showing posts with label Computer Geek. Show all posts

Tuesday, August 28, 2012

Appetitive/Spirited: Formatting in LaTex

I've been fighting with LaTeX for the last few days. I wrote my thesis in LaTeX because the formatting was so pretty, but I was really foolish. I am not a computer person in general and it didn't occur to me that I might want to deal with portions of my thesis in other contexts and trying to make a decent version of a portion of my thesis is problematic with LaTeX partially because I'm just completely hopeless with it and partially because it just takes a lot longer to make some of the stuff work.

In case anyone else uses LaTeX for writing, I thought I'd put up some pointers for writing in Ancient Greek. I had some problems with Teubner, which is what (I think) most of my friends used and I just wanted to use unicode polytonic Greek and enter it like I enter Greek for everything else. Unicode should work in every program, right? Well, everyone on the internet seemed to agree with me, but basically none of the ways that any one posted worked. It was really really really disheartening/frustrating. So I thought I'd post what I'd managed to do, just in case anyone else runs into the same problems.

Here are my system specifications:
  • Windows 7
  • MiKTeX 2.9 (which runs as TeXworks and a DVI previewer)
  • Aspell
  • Emacs
  • + any packages MiKTeX prompted me to download throughout this process. If you have this, it will prompt you too so never fear.
If you don't have this system or any of this other stuff, I have no idea whether this will work for you. If you're using XeTeX I do know that this won't work. There are other ways, but you will have to do your own research on that (sorry guys).

Directions:
  • Click on edit > preferences > editor > encoding > UTF-8 > ok
  •  Make sure that your system is building to pdfLaTeX+MakeIndex+BibTeX
  • Now insert this piece of coding. The bolded part is necessary, the unbolded parts around it show you where to insert it in your document
    • \documentclass[12pt,twoside] {article}
      \usepackage[utf8x]{inputenx}
      \usepackage[LGR, T1]{fontenc}
      \usepackage[polutonikogreek,english]{babel}
      \newcommand{\greek}[1]{{\selectlanguage{greek}#1}}
      \usepackage{palatino}
      \begin{document}
  • When you want to type in Greek in the document, \greek{σκιαία}
    • The bolded portion is the way to indicate Greek. The Greek goes inside the curly-brackets. For this to work, you must have unicode polytonic Greek enabled on your computer and type in it in the curly brackets. If you don't have it set up, I wrote up some instructions for Windows XP and Windows 7. 
  • That's all!
I don't know why this works or why other methods didn't work for me. So far as I can understand, the  \usepackage[utf8x]{inputenx} tells LaTeX to use the unicode, the \usepackage[polutonikogreek,english]{babel} tells the document what languages you are writing in, and the \newcommand{\greek}[1]{{\selectlanguage{greek}#1}} tells it what the command is going to look like in order that LaTeX can recognize it. it seems to be working, anyway, which is all that matters.

Thursday, October 28, 2010

Appetitive: Update on Polytonic Greek and Other Geekery

So I originally had a lot of trouble with my polytonic Greek for Windows, as detailed in my previous blogpost. This is a problem that I have finally rectified. I have rectified the problem through the simple instructions for polytonic Greek on The Campvs. So I am going to write out a new version of the instructions, now for Windows XP and Windows 7 that are much easier and do not require any downloads or any dead keys (yay!).

Windows XP
  1. Go to the Control Panel
  2. Double click on Regional and Language Options
  3. Click on the Languages Tab
  4. Click on the Details button. 
  5. Click on the Add button on the Settings tab.
  6. Select Greek from the Input language list.
  7. Click to check the box next to "keyboard." Select Polytonic Greek from the drop down list. Click Ok.
  8. Back on the Settings tab, click on the Key Settings button. 
  9. Click on the Switch between input languages line of text. Click on the Change Key Sequence button and then select one of the two key sequences. Click on the Ok buttons all the way through to save your changes.
Windows 7
  1. Go to the Control Panel.
  2. Click on Clock, Language, and Region.
  3. Click on Change Keyboards or Other Input Methods under Region and Language.
  4. Click on the Keyboards and Languages tab.
  5. Click the Change Keyboards Button.
  6. Click the Add button on the General tab.
  7. Click the + on next to the word Greek and click to check the box next to Polytonic.
  8. Click Ok to save your changes.
See the cheat sheet for the ways to make all of the different accents on The Campvs.

For some more cool tech stuff, The Campvs wrote a piece on how to configure a flash drive in order to organize your scholarship and read words in Ancient Greek here.

Another fascinating option for typing Greek on a website. The two options are Keyman Web and a website that transforms beta code into unicode.

Monday, September 27, 2010

Appetitve: Free Polytonic Unicode Greek on Windows (and a question for computer geeks)

One of the things that I have been aiming at for quite a while now is being able to easily write polytonic Greek with relative ease on the computer. I have difficulty with Macs so the computers to which I have access are a Windows XP machine and a Windows 7 machine. I finally found two sites that have helped me out: this one which allowed me to download the Unicode Greek Keyboard for Microsoft and this one which helped me change my settings so I could toggle between the two [1] .

I can now toggle beautifully: αβγδεζηθικμνξοπρστυφχψω. However, I can only get one of the accents to work ά. According to the website, I need a dead key to make this work (i.e. a key that will postpone the action on the keyboard so it can be modified by a further keystroke). I am supplying a picture of my keyboard. Does anyone know what my dead key should be or have any ideas? Thanks!

keyboard
Sorry for it being blurry. The silver keys are just quick-function buttons such as calculator.


Endnotes
  1. An easier way to do this than the website recommends (for XP and AFTER you have downloaded the Unicode Greek Keyboard) is to go to Control Panel. Double click on Regional and Language Options. Click on the Languages Tab. Click on the Details button. Click on the Key Settings button. Click on the Switch between input languages line of text. Click on the Change Key Sequence button and then select one of the two key sequences. Click on the Ok buttons all the way through to save your changes.