Install language-latex and:
path = require 'path'
atom.workspaceView.eachEditorView (editorView) ->
editor = editorView.getEditor()
if path.extname(editor.getPath()) is '.tex'
try
atom.workspace.panelContainers.left.panels[0].item.detach()
catch e
console.log e
atom-text-editor {
&[data-grammar~=latex]::shadow {
.gutter-container {
display: none !important;
}
.lines {
min-width: 700px;
max-width: 700px;
margin-left: auto;
margin-right: auto;
}
}
}